AI-generated Key Takeaways
-
DeveloperMetadataLocation
provides access to information about the location of developer metadata within a spreadsheet. -
It offers methods to retrieve the location type, which can be a spreadsheet, sheet, row, or column.
-
You can get the specific Spreadsheet, Sheet, or Range associated with the metadata, depending on its location type.
-
All methods require authorization with either
https://www.googleapis.com/auth/spreadsheets.currentonly
orhttps://www.googleapis.com/auth/spreadsheets
scopes.
Access developer metadata location information.
Methods
Method | Return type | Brief description |
---|---|---|
get | Range | Returns the Range for the column location of this metadata, or null if the
location type is not Developer . |
get | Developer | Gets the type of location. |
get | Range | Returns the Range for the row location of this metadata, or null if the
location type is not Developer . |
get | Sheet | Returns the Sheet location of this metadata, or null if the location type is
not Developer . |
get | Spreadsheet | Returns the Spreadsheet location of this metadata, or null if the location
type is not Developer . |
Detailed documentation
getColumn()
Returns the Range
for the column location of this metadata, or null
if the
location type is not Developer
.
Return
Range
— The Range
for the column location of this metadata, or null
if the
location type is not Developer
.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getLocationType()
Gets the type of location.
Return
Developer
— The location type.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getRow()
Returns the Range
for the row location of this metadata, or null
if the
location type is not Developer
.
Return
Range
— The Range
for the row location of this metadata, or null
if the
location type is not Developer
.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSheet()
Returns the Sheet
location of this metadata, or null
if the location type is
not Developer
.
Return
Sheet
— The Sheet
location of this metadata, or null
if the location type is
not Developer
.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSpreadsheet()
Returns the Spreadsheet
location of this metadata, or null
if the location
type is not Developer
.
Return
Spreadsheet
— The Spreadsheet
location of this metadata, or null
if the location
type is not Developer
.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets