Class DeveloperMetadataLocation

開發人員中繼資料位置

存取開發人員中繼資料位置資訊。

方法

方法傳回類型簡短說明
getColumn()Range|null傳回此中繼資料資料欄位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.COLUMN,則傳回 null
getLocationType()DeveloperMetadataLocationType取得位置類型。
getRow()Range|null傳回這個中繼資料列位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.ROW,則傳回 null
getSheet()Sheet|null傳回這項中繼資料的 Sheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SHEET,則傳回 null
getSpreadsheet()Spreadsheet|null傳回這項中繼資料的 Spreadsheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SPREADSHEET,則傳回 null

內容詳盡的說明文件

getColumn()

傳回此中繼資料資料欄位置的 Range,如果位置類型不是 DeveloperMetadataLocationType.COLUMN,則傳回 null

回攻員

Range|null - 這個中繼資料的資料欄位置,或位置類型不是 DeveloperMetadataLocationType.COLUMN 時的 nullRange

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • 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|null - 這個中繼資料的列位置,如果位置類型不是 DeveloperMetadataLocationType.ROW,則為 nullRange

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getSheet()

傳回這項中繼資料的 Sheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SHEET,則傳回 null

回攻員

Sheet|null:這個中繼資料的 Sheet 位置,或位置類型不是 DeveloperMetadataLocationType.SHEET 時為 null

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getSpreadsheet()

傳回這項中繼資料的 Spreadsheet 位置,如果位置類型不是 DeveloperMetadataLocationType.SPREADSHEET,則傳回 null

回攻員

Spreadsheet|null:這個中繼資料的 Spreadsheet 位置,或位置類型不是 DeveloperMetadataLocationType.SPREADSHEET 時為 null

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets