그리드 » Api

setitemfont

Description

그리드 특정 아이템의 폰트를 설정하는 API이다.

Parameters

Parameters Type Description
nRow long 로우 인덱스
nColumn short 컬럼 인덱스
strFontName STRING 폰트명
nFontSize short 폰트사이즈
bFontBold BOOL 굵게여부(true, false) 또는 폰트 굵기(font-weight) 값(100 ~ 900)
bFontItalic BOOL 기울림여부(true, false)
bFontUnderline BOOL 밑줄여부(true, false)
bFontStrikeout BOOL 취소선여부(true, false)
bRefresh BOOL [옵션] 그리드 리프레쉬 여부(true/false), 기본값 true

Return Value

Type Description
BOOL 정상 적용 여부(true, false)

Remark

bRefresh 값이 false인 경우, 변경된 내용을 표시하기 위해서는 refresh 함수를 호출해야 한다.

만약 많은 수의 아이템에 대해서 루핑 돌면서 호출하는 경우라면, 해당 파라미터를 false로 주고, 루핑처리 끝난 이후에 그리드 refresh 함수를 호출하는 것이 속도면에서 훨씬 빠릅니다.

Example

function btn_on_mouseup() { grd.setitemfont(0, 0, "돋움체", 9, true, false, false, false); }

Viewer Ver.

9.1.1.1

Update Date

20200319