在試算表中搜尋開發人員中繼資料。如要建立新的開發人員中繼資料搜尋工具,請使用 Range.createDeveloperMetadataFinder()、Sheet.createDeveloperMetadataFinder() 或 Spreadsheet.createDeveloperMetadataFinder()。
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
find() | Developer | 執行這項搜尋作業,並傳回相符的中繼資料。 |
on | Developer | 設定搜尋作業,將含有中繼資料的交集位置納入考量。 |
with | Developer | 將搜尋範圍限制為只考量符合指定 ID 的中繼資料。 |
with | Developer | 將這項搜尋限制為只考量符合指定鍵的中繼資料。 |
with | Developer | 將這項搜尋限制為只考慮符合指定位置類型的中繼資料。 |
with | Developer | 限制這項搜尋,只考量符合指定值的相關中繼資料。 |
with | Developer | 限制這項搜尋,只考量符合指定顯示狀態的中繼資料。 |
內容詳盡的說明文件
find()
執行這項搜尋作業,並傳回相符的中繼資料。
回攻員
DeveloperMetadata[]:符合搜尋條件的開發人員中繼資料。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
onIntersectingLocations()
withId(id)
將搜尋範圍限制為只考量符合指定 ID 的中繼資料。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
id | Integer | 搜尋中繼資料時要比對的 ID。 |
回攻員
DeveloperMetadataFinder - 開發人員中繼資料搜尋工具,用於鏈結。
withKey(key)
將這項搜尋限制為只考量符合指定鍵的中繼資料。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
key | String | 搜尋中繼資料時要比對的鍵。 |
回攻員
DeveloperMetadataFinder - 開發人員中繼資料搜尋工具,用於鏈結。
withLocationType(locationType)
將這項搜尋限制為只考慮符合指定位置類型的中繼資料。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
location | Developer | 搜尋中繼資料時要比對的位置類型。 |
回攻員
DeveloperMetadataFinder - 開發人員中繼資料搜尋工具,用於鏈結。
withValue(value)
限制這項搜尋,只考量符合指定值的相關中繼資料。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
value | String | 搜尋中繼資料時要比對的值。 |
回攻員
DeveloperMetadataFinder - 開發人員中繼資料搜尋工具,用於鏈結。
withVisibility(visibility)
限制這項搜尋,只考量符合指定顯示狀態的中繼資料。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
visibility | Developer | 搜尋中繼資料時要比對的可見度。 |
回攻員
DeveloperMetadataFinder - 開發人員中繼資料搜尋工具,用於鏈結。