Add a style definition array. Specify the style name at index 0 of the array, and from index 1 onwards specify the property setting format of Cell Property in the array.
example)
this.AddStyle(
c("styleLabel", "CellType:label", "FillColor:#FF0000"),
c("styleEdit", "CellType:edit", "FillColor:#FF0000"),
c("styleButton", "CellType:button", "FillColor:#00FF00"),
c("styleSideButton", "CellType:sidebutton", "FillColor:#00FF00"),
c("styleCombo", "CellType:combo", "FillColor:#00FF00", "TextList:open"+::RET()+"close"+::RET()+"error"),
c("styleSwitch", "CellType:switch", "FillColor:#0000FF"),
c("styleFill", "FillColor:#FFFF00"));
By registering the style registered with AddStyle to each column (or each row) using the SetDefaultStyle method, it will be used as the default cell style when the AddRow / AddCol / InsertRow / InsertCol methods are used or the Rows/Cols properties are changed.
In addition, styles registered with AddStyle can also be specified as the style cell property using SetCellProperty etc.
|