setCellStyle (method)

특정 셀의 style속성 값을 변경합니다.

Syntax

void setCellStyle( row, col, styleAttr, render );

Parameters

Name Type Required Description
row object 필수 데이터 로우 객체
col string 필수 열이름
styleAttr object 필수 확인하고 싶은 style 속성값
'Color'(배경색), 'TextColor'(텍스트의 컬러), 'TextSize'(텍스트 크기), 'TextStyle'(텍스트의 스타일), 'TextFamily'(텍스트 폰트), 'Align'(정렬)
render boolean 선택 즉시 화면에 반영 여부

Return Value

none

Example

//셀의 글자색을 변경한다.
sheet.setCellStyle( sheet.getRowById("AR66"), "CUST_CD", {"TextColor" : "#FF0000"}, 1);

Read More

Since

product version desc
core 8.0.0.0 기능 추가