Class DeveloperMetadataLocation
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
開發人員中繼資料位置
存取開發人員中繼資料位置資訊。
內容詳盡的說明文件
getColumn()
傳回此中繼資料的資料欄位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.COLUMN,則傳回 null。
回攻員
Range:此中繼資料資料欄位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.COLUMN,則為 null。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getLocationType()
取得位置類型。
回攻員
DeveloperMetadataLocationType:位置類型。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getRow()
傳回此中繼資料的資料列位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.ROW,則傳回 null。
回攻員
Range:此中繼資料的資料列位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.ROW,則為 null。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSheet()
傳回此中繼資料的 Sheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SHEET,則傳回 null。
回攻員
Sheet:此中繼資料的 Sheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SHEET,則為 null。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSpreadsheet()
傳回此中繼資料的 Spreadsheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SPREADSHEET,則傳回 null。
回攻員
Spreadsheet:此中繼資料的 Spreadsheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SPREADSHEET,則為 null。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[],[]]