Class Banding

バンディング

範囲の行または列に適用されるカラー パターンであるバンディングにアクセスして変更します。各バンディングは、行、列、ヘッダー、フッターの範囲と色のセットで構成されます。

メソッド

メソッド戻り値の型概要
copyTo(range)Bandingこのバンディングを別の範囲にコピーします。
getFirstColumnColorObject()Color|nullバンディングの最初の交互の列の色を返します。色が設定されていない場合は null を返します。
getFirstRowColorObject()Color|null交互の行の最初の色を返します。色が設定されていない場合は null を返します。
getFooterColumnColorObject()Color|nullバンディングの最後の列の色を返します。色が設定されていない場合は null を返します。
getFooterRowColorObject()Color|nullバンディングの最後の行の色を返します。色が設定されていない場合は null を返します。
getHeaderColumnColorObject()Color|nullバンディングの最初の列の色を返します。色が設定されていない場合は null を返します。
getHeaderRowColorObject()Color|nullヘッダー行の色を返します。色が設定されていない場合は null を返します。
getRange()Rangeこのバンディングの範囲を返します。
getSecondColumnColorObject()Color|nullバンディングの 2 番目の交互の列の色を返します。色が設定されていない場合は null を返します。
getSecondRowColorObject()Color|null2 番目の交互の行の色を返します。色が設定されていない場合は null を返します。
remove()voidこのバンディングを削除します。
setFirstColumnColor(color)Banding交互に表示される最初の列の色を設定します。
setFirstColumnColorObject(color)Bandingバンディングの最初の交互の列の色を設定します。
setFirstRowColor(color)Banding交互に表示される最初の行の色を設定します。
setFirstRowColorObject(color)Bandingバンディングの最初の交互の行の色を設定します。
setFooterColumnColor(color)Banding最後の列の色を設定します。
setFooterColumnColorObject(color)Bandingバンディングの最後の列の色を設定します。
setFooterRowColor(color)Banding最後の行の色を設定します。
setFooterRowColorObject(color)Bandingバンディングのフッター行の色を設定します。
setHeaderColumnColor(color)Bandingヘッダー列の色を設定します。
setHeaderColumnColorObject(color)Bandingヘッダー列の色を設定します。
setHeaderRowColor(color)Bandingヘッダー行の色を設定します。
setHeaderRowColorObject(color)Bandingヘッダー行の色を設定します。
setRange(range)Bandingこのバンディングの範囲を設定します。
setSecondColumnColor(color)Banding交互に表示される 2 列目の色を設定します。
setSecondColumnColorObject(color)Bandingバンディングの 2 番目の交互の列の色を設定します。
setSecondRowColor(color)Banding交互に表示される 2 行目の色を設定します。
setSecondRowColorObject(color)Bandingバンディングの 2 番目の交互の色を設定します。

詳細なドキュメント

copyTo(range)

このバンディングを別の範囲にコピーします。

パラメータ

名前説明
rangeRangeこのバンディングをコピーする範囲。

戻る

Banding - 新しいバンディング。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getFirstColumnColorObject()

バンディングの最初の交互の列の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの最初の交互の列の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getFirstRowColorObject()

交互の行の最初の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの最初の交互の行の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getFooterColumnColorObject()

バンディングの最後の列の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの最後の列の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getFooterRowColorObject()

バンディングの最後の行の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングのフッター行の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getHeaderColumnColorObject()

バンディングの最初の列の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの 1 列目の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getHeaderRowColorObject()

ヘッダー行の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - ヘッダー行の色。色が設定されていない場合は null を返します。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getRange()

このバンディングの範囲を返します。

戻る

Range - このバンディングの範囲。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getSecondColumnColorObject()

バンディングの 2 番目の交互の列の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの 2 番目の交互の列の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getSecondRowColorObject()

2 番目の交互の行の色を返します。色が設定されていない場合は null を返します。

戻る

Color|null - バンディングの 2 番目の交互の行の色。色が設定されていない場合は null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

remove()

このバンディングを削除します。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFirstColumnColor(color)

交互に表示される最初の列の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFirstColumnColorObject(color)

バンディングの最初の交互の列の色を設定します。

パラメータ

名前説明
colorColorバンディングの新しい最初の交互列の色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFirstRowColor(color)

交互に表示される最初の行の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFirstRowColorObject(color)

バンディングの最初の交互の行の色を設定します。

パラメータ

名前説明
colorColorバンディングの新しい最初の交互の色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFooterColumnColor(color)

最後の列の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFooterColumnColorObject(color)

バンディングの最後の列の色を設定します。

パラメータ

名前説明
colorColorバンディングの最後の列の新しい色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFooterRowColor(color)

最後の行の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setFooterRowColorObject(color)

バンディングのフッター行の色を設定します。

パラメータ

名前説明
colorColorフッター行の新しい色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setHeaderColumnColor(color)

ヘッダー列の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setHeaderColumnColorObject(color)

ヘッダー列の色を設定します。

パラメータ

名前説明
colorColor新しいヘッダー列の色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setHeaderRowColor(color)

ヘッダー行の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setHeaderRowColorObject(color)

ヘッダー行の色を設定します。

パラメータ

名前説明
colorColor新しいヘッダー行の色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setRange(range)

このバンディングの範囲を設定します。

パラメータ

名前説明
rangeRangeこのバンディングの新しい範囲。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setSecondColumnColor(color)

交互に表示される 2 列目の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setSecondColumnColorObject(color)

バンディングの 2 番目の交互の列の色を設定します。

パラメータ

名前説明
colorColorバンディングの 2 番目の交互の列の新しい色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setSecondRowColor(color)

交互に表示される 2 行目の色を設定します。

パラメータ

名前説明
colorStringCSS 表記の色コード('#ffffff''white' など)、または色をクリアする null

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

setSecondRowColorObject(color)

バンディングの 2 番目の交互の色を設定します。

パラメータ

名前説明
colorColorバンディングの新しい 2 番目の交互の色。null に設定すると、色がクリアされます。

戻る

Banding - このバンディング(チェーン用)。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

サポート終了のメソッド