AI-generated Key Takeaways
-
The DeveloperMetadataLocation class provides access to information about the location of developer metadata within a spreadsheet.
-
You can retrieve the location type of the metadata using the
getLocationType()method. -
Methods like
getColumn(),getRow(),getSheet(), andgetSpreadsheet()return the specific location (Range, Sheet, or Spreadsheet) based on the metadata's location type, ornullif it doesn't match. -
Accessing developer metadata location information typically requires authorization with spreadsheet-related scopes.
Access developer metadata location information.
Methods
| Method | Return type | Brief description |
|---|---|---|
Range
|
Returns the Range
for the column location of this metadata, or null
if the
location type is not Developer
. |
|
Developer
|
Gets the type of location. | |
Range
|
Returns the Range
for the row location of this metadata, or null
if the
location type is not Developer
. |
|
Sheet
|
Returns the Sheet
location of this metadata, or null
if the location type is
not Developer
. |
|
Spreadsheet
|
Returns the Spreadsheet
location of this metadata, or null
if the location
type is not Developer
. |
Detailed documentation
get
Column()
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
get
Location
Type()
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
get
Row()
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
get
Sheet()
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
get
Spreadsheet()
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

