Class Color

색상

색상 표현입니다.

메서드

메서드반환 유형간략한 설명
asRgbColor()RgbColor이 색상을 RgbColor으로 변환합니다.
asThemeColor()ThemeColor이 색상을 ThemeColor으로 변환합니다.
getColorType()ColorType이 색상의 유형을 가져옵니다.

자세한 문서

asRgbColor()

이 색상을 RgbColor으로 변환합니다.

Return

RgbColor — RGB 색상입니다.

예외 처리

Error: 색상이 RgbColor이 아닌 경우

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상을 사용하여 승인해야 합니다.

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

asThemeColor()

이 색상을 ThemeColor으로 변환합니다.

Return

ThemeColor — 테마 색상입니다.

예외 처리

Error: 색상이 ThemeColor이 아닌 경우.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상을 사용하여 승인해야 합니다.

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

getColorType()

이 색상의 유형을 가져옵니다.

Return

ColorType: 색상 유형입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상을 사용하여 승인해야 합니다.

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