스타일의 인터페이스 EAS

obj가이 IRow, IColumn, ICell 개체 일 수 KDTable 개체 일 수
로크
(참) SetLocked () ;. Obj.getStyleAttributes
Obj.getStyleAttributes ()는 () ;. isLocked
숨기기
Obj.getStyleAttributes ()를 setHided (true로);
OBJ .getStyleAttributes () isHided ().
배향 (수직 및 수평)
Obj.getStyleAttributes () setHorizontalAlign합니다 (HorizontalAlignment로 RIGHT.);
Obj.getStyleAttributes () setVerticalAlign (VerticalAlignment.TOP);
래핑 여부
Obj.getStyleAttributes () setWrapText. (TRUE),
배경색
Obj.getStyleAttributes () setBackground의 (Color.YELLOW)] .
보더 펜 (실선 또는 점선 등)
Obj.getStyleAttributes () setBorderPenStyle (Position.RIGHT, PenStyle.PS_SOLID);
Obj.getStyleAttributes ( ) .setBorderColor (Position.RIGHT, Color.YELLOW)
폰트
Obj.getStyleAttributes () setFontSize (16);
(true로) Obj.getStyleAttributes () setBold.

// 닫기 열 또는 행
col.getStyleAttributes () setHided (true로);
Row.getStyleAttributes () setHided (true로);
/ 배경 / 컬러 설정 부
cell.getStyleAttributes () setBackground의 (색);
// 부 폰트 컬러, 폰트 이름, 폰트 크기 설정
cell.getStyleAttributes () setFontColor (색상);
cell.getStyleAttributes () setFontName (strName).;
cell.getStyleAttributes () setFontSize (크기);
// 잠금 테이블, 행, 열, 셀
table.getStyleAttributes ()가 SetLocked (true로);
row.getStyleAttributes는 () (참) ;. SetLocked
col.getStyleAttributes ()가 SetLocked. (TRUE로);
.; cell.getStyleAttributes는 () (참) SetLocked
// 정렬을 설정합니다
table.getStyleAttributes () setHorizontalAlign (HorizontalAlignment.RIGHT이);
포장 자동으로 설정 //
(true로) table.getStyleAttributes () setWrapText를 ;.
// 숨기기 테이블, 행, 열, 셀 경계
. table.getStyleAttributes ()를 setBorderLineStyle ( . Position.RIGHT, 선 스타일 NULL_LINE는); //이 상자의 오른쪽에있는 테이블 셀 숨기기
table.getStyleAttributes () setBorderLineStyle (Position.BOTTOM, 선 스타일 //; NULL_LINE) . 표 셀 테두리에서 숨기기
기본적으로 왼쪽 KDTable : 주 경계와 경계는 비어 있으며 오른쪽 테두리 하단 테두리 비어 있지 않습니다. 코드는 또한 특정 행, 열, 또는 세포에 적용될 수있다.
table.getRow (2) .setHeight (20이다)
. (1) table.getColumn .setWidth (100);


추천

출처www.cnblogs.com/luojiabao/p/10963785.html