データソースの列にアクセスして変更します。
このクラスは、データベースに接続されているデータでのみ使用してください。
メソッド
| メソッド | 戻り値の型 | 概要 |
|---|---|---|
get | Data | データソース列に関連付けられているデータソースを取得します。 |
get | String | データソース列の数式を取得します。 |
get | String | データソース列の名前を取得します。 |
has | Boolean | 列に配列の依存関係があるかどうかを返します。 |
is | Boolean | 列が計算列かどうかを返します。 |
remove() | void | データソース列を削除します。 |
set | Data | データソース列の式を設定します。 |
set | Data | データソース列の名前を設定します。 |
詳細なドキュメント
get Data Source()
データソース列に関連付けられているデータソースを取得します。
戻る
Data - データソース。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
get Formula()
データソース列の数式を取得します。データソース列が calculated column でない場合、空の文字列を返します。
戻る
String - 数式。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
get Name()
データソース列の名前を取得します。
戻る
String - 列名。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
has Array Dependency()
列に配列の依存関係があるかどうかを返します。
戻る
Boolean - 列に配列の依存関係がある場合は true、それ以外の場合は false。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
is Calculated Column()
列が計算列かどうかを返します。
戻る
Boolean - 列が計算列の場合は true、そうでない場合は false。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
remove()
データソース列を削除します。
calculated columns でのみサポートされます。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
set Formula(formula)
データソース列の式を設定します。
calculated columns でのみサポートされます。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
formula | String | 新しい数式。 |
戻る
Data - チェーン接続用のデータソース列。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
set Name(name)
データソース列の名前を設定します。
calculated columns でのみサポートされます。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
name | String | 設定する名前。 |
戻る
Data - チェーン接続用のデータソース列。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets