eas of style interfaces

Obj can be KDTable objects, it can be IRow, IColumn, ICell objects
locked
Obj.getStyleAttributes () SetLocked (to true);.
Obj.getStyleAttributes () isLocked ();.
Hide
Obj.getStyleAttributes () setHided (to true);.
Obj .getStyleAttributes () isHided ().
aligned (horizontally and vertically)
Obj.getStyleAttributes () setHorizontalAlign (the HorizontalAlignment RIGHT.);.
Obj.getStyleAttributes () setVerticalAlign (VerticalAlignment.TOP);.
whether wrapped
Obj.getStyleAttributes () setWrapText. (true);
background color
Obj.getStyleAttributes () setBackground (Color.YELLOW); .
border pen (solid line or dotted lines, etc.)
Obj.getStyleAttributes () setBorderPenStyle (Position.RIGHT, PenStyle.PS_SOLID);.
Obj.getStyleAttributes ( ) .setBorderColor (Position.RIGHT, Color.YELLOW)
font
Obj.getStyleAttributes () setFontSize (16);.
Obj.getStyleAttributes () setBold (to true).

// hide column or row
col.getStyleAttributes () setHided (to true);.
Row.getStyleAttributes () setHided (to true);.
/ / background color setting unit
cell.getStyleAttributes () setBackground (color);.
// setting unit font color, font name, font size
cell.getStyleAttributes () setFontColor (color);.
. cell.getStyleAttributes () setFontName (strName);
cell.getStyleAttributes () setFontSize (size);.
// lock table, rows, columns, cells
table.getStyleAttributes () SetLocked (to true);.
row.getStyleAttributes () SetLocked (to true);.
col.getStyleAttributes () SetLocked. (to true);
. cell.getStyleAttributes () SetLocked (to true);
// Sets the alignment
table.getStyleAttributes () setHorizontalAlign (HorizontalAlignment.RIGHT);.
// set automatically wrap
table.getStyleAttributes () setWrapText (to true);.
// hide table, rows, columns, cells border
. table.getStyleAttributes () setBorderLineStyle ( . Position.RIGHT, LineStyle NULL_LINE); // hide the table cell to the right of the box
table.getStyleAttributes () setBorderLineStyle (Position.BOTTOM, LineStyle NULL_LINE); // hide under the table cell borders.
Note: KDTable left by default border and the border is empty, and the right border bottom border is not empty. The code may also be applied in a particular row, column, or cell.
table.getRow (2) .setHeight (20 is);
table.getColumn (. 1) .setWidth (100);


Guess you like

Origin www.cnblogs.com/luojiabao/p/10963785.html
EAS