เข้าถึงข้อมูลตำแหน่งของข้อมูลเมตาของนักพัฒนาซอฟต์แวร์
เมธอด
| วิธีการ | ประเภทการแสดงผล | รายละเอียดแบบย่อ |
|---|---|---|
get | Range|null | แสดงผล Range สำหรับตำแหน่งคอลัมน์ของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ Developer |
get | Developer | รับประเภทของสถานที่ |
get | Range|null | แสดงผล Range สำหรับตำแหน่งแถวของข้อมูลเมตานี้ หรือ null หาก
ประเภทตำแหน่งไม่ใช่ Developer |
get | Sheet|null | แสดงผลSheetตำแหน่งของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ Developer |
get | Spreadsheet|null | แสดงผลSpreadsheetตำแหน่งของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่ง
ไม่ใช่ Developer |
เอกสารโดยละเอียด
getColumn()
แสดงผล Range สำหรับตำแหน่งคอลัมน์ของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ DeveloperMetadataLocationType.COLUMN
รีเทิร์น
Range|null — Range สำหรับตำแหน่งคอลัมน์ของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ DeveloperMetadataLocationType.COLUMN
การให้สิทธิ์
สคริปต์ที่ใช้วิธีนี้ต้องมีการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 รายการ
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
getLocationType()
รับประเภทของสถานที่
รีเทิร์น
DeveloperMetadataLocationType — ประเภทสถานที่
การให้สิทธิ์
สคริปต์ที่ใช้วิธีนี้ต้องมีการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 รายการ
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
getRow()
แสดงผล Range สำหรับตำแหน่งแถวของข้อมูลเมตานี้ หรือ null หาก
ประเภทตำแหน่งไม่ใช่ DeveloperMetadataLocationType.ROW
รีเทิร์น
Range|null — Range สำหรับตำแหน่งแถวของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ DeveloperMetadataLocationType.ROW
การให้สิทธิ์
สคริปต์ที่ใช้วิธีนี้ต้องมีการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 รายการ
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
getSheet()
แสดงผลSheetตำแหน่งของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่ DeveloperMetadataLocationType.SHEET
รีเทิร์น
Sheet|null — Sheetตำแหน่งของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่งไม่ใช่
DeveloperMetadataLocationType.SHEET
การให้สิทธิ์
สคริปต์ที่ใช้วิธีนี้ต้องมีการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 รายการ
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
getSpreadsheet()
แสดงผลSpreadsheetตำแหน่งของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่ง
ไม่ใช่ DeveloperMetadataLocationType.SPREADSHEET
รีเทิร์น
Spreadsheet|null — ตำแหน่ง Spreadsheet ของข้อมูลเมตานี้ หรือ null หากประเภทตำแหน่ง
ไม่ใช่ DeveloperMetadataLocationType.SPREADSHEET
การให้สิทธิ์
สคริปต์ที่ใช้วิธีนี้ต้องมีการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 รายการ
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets