범위의 행 또는 열에 적용된 색상 패턴인 밴딩에 액세스하고 수정합니다. 각 밴딩은 행, 열, 헤더, 바닥글의 범위와 색상 집합으로 구성됩니다.
메서드
지원 중단된 메서드
메서드 | 반환 유형 | 간략한 설명 |
---|---|---|
| String | 교체되는 첫 번째 열 색상을 반환하거나 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 교체되는 첫 번째 행 색상을 반환하거나 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 마지막 열의 색상 또는 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 마지막 행의 색상 또는 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 헤더 열의 색상 또는 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 헤더 행의 색상 또는 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 교체되는 두 번째 열 색상을 반환하거나 색상이 설정되지 않은 경우 null 을 반환합니다. |
| String | 교체되는 두 번째 행 색상을 반환하거나 색상이 설정되지 않은 경우 null 을 반환합니다. |
자세한 문서
copyTo(range)
getFirstColumnColorObject()
getFirstRowColorObject()
getHeaderColumnColorObject()
getHeaderRowColorObject()
getRange()
getSecondColumnColorObject()
getSecondRowColorObject()
remove()
이 밴딩을 제거합니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
setFirstColumnColor(color)
setFirstColumnColorObject(color)
setFirstRowColor(color)
setFirstRowColorObject(color)
setHeaderColumnColor(color)
setHeaderColumnColorObject(color)
setHeaderRowColor(color)
setHeaderRowColorObject(color)
setRange(range)
setSecondColumnColor(color)
setSecondColumnColorObject(color)
setSecondRowColor(color)
setSecondRowColorObject(color)
지원 중단된 메서드
getFirstColumnColor()
getFirstColumnColor()
지원 중단되었습니다. get
로 대체됨
교체되는 첫 번째 열 색상을 반환하거나 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFirstRowColor()
getFirstRowColor()
지원 중단되었습니다. get
로 대체됨
교체되는 첫 번째 행 색상을 반환하거나 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFooterColumnColor()
getFooterColumnColor()
지원 중단되었습니다. get
로 대체됨
마지막 열의 색상 또는 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFooterRowColor()
getFooterRowColor()
지원 중단되었습니다. get
로 대체됨
마지막 행의 색상 또는 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getHeaderColumnColor()
getHeaderColumnColor()
지원 중단되었습니다. get
로 대체됨
헤더 열의 색상 또는 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getHeaderRowColor()
getHeaderRowColor()
지원 중단되었습니다. get
로 대체됨
헤더 행의 색상 또는 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSecondColumnColor()
getSecondColumnColor()
지원 중단되었습니다. get
로 대체됨
교체되는 두 번째 열 색상을 반환하거나 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: HEX 색상 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSecondRowColor()
getSecondRowColor()
지원 중단되었습니다. get
로 대체됨
교체되는 두 번째 행 색상을 반환하거나 색상이 설정되지 않은 경우 null
을 반환합니다.
리턴
String
: CSS 표기법의 색상 코드 (예: '#ffffff'
또는 'white'
) 또는 색상이 설정되지 않은 경우 null
입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets