[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.RowCol.StyleNew

StyleNew Property

StyleNew

Gets or sets a custom CellStyle associated with this row or column, creating a new style if necessary.

Declaration
[Browsable(false)]
public virtual CellStyle StyleNew { get; }
Remarks

This property never returns null. If this element does not have a custom style, a new one will be created automatically and returned.

Examples

The code below sets a column's background color to red.

// get the style associated with column 1 (create a new one if necessary)
CellStyle cs = _flex.Cols[1].StyleNew.BackColor;

// set the new style's back color to red
cs.BackColor = Color.Red;