[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.CellBorder.VerticalWidth

VerticalWidth Property

VerticalWidth

Gets or sets the vertical border edges width (except for 3D borders) when Direction is set to BothDifferent.

Declaration
public int VerticalWidth { get; set; }
Remarks

Used with Direction = BothDifferent only. Customize Width property for other cases.

Makes sence for Style set to Flat or Double only. 3D borders are always one or two pixels wide.

Examples

Set 1 px right border for selected column header cells.

var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
c1FlexGrid1.Styles.SelectedColumnHeader.Border.Direction = BorderDirEnum.BothDifferent;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.VerticalWidth = 1;

VerticalWidth value will be ignored.

var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
c1FlexGrid1.Styles.SelectedColumnHeader.Border.Direction = BorderDirEnum.Both;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.VerticalWidth = 1;

Set wide green bottom border and thin gray side border for selected column header cells.

var flexGrid = new C1.Win.FlexGrid.C1FlexGrid();
c1FlexGrid1.Styles.SelectedColumnHeader.Border.Direction = BorderDirEnum.BothDifferent;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.VerticalWidth = 1;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.HorizontalWidth = 3;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.HorizontalColor = Color.Green;
c1FlexGrid1.Styles.SelectedColumnHeader.Border.VerticalColor = Color.Gray;