'Declaration
Public Sub MergeWith( _ ByVal sourceStyle As CellStyle _ )
public void MergeWith( CellStyle sourceStyle )
Parameters
- sourceStyle
'Declaration
Public Sub MergeWith( _ ByVal sourceStyle As CellStyle _ )
public void MergeWith( CellStyle sourceStyle )
// create a new style CellStyle cs = _flex.Styles.Add("newStyle"); // set data type, alignment cs.DataType = typeof(int); cs.TextAlign = TextAlignEnum.CenterCenter; // copy remaining elements from "Fixed" style cs.MergeWith(_flex.Styles.Fixed); // assign new style to grid column _flex.Cols[col].Style = cs;