Spread Windows Forms 9.0 Product Documentation
ColumnHeaderHorizontalGridLine Property
Example 


Gets or sets the horizontal grid line for the sheet.
Syntax
'Declaration
 
Public Property ColumnHeaderHorizontalGridLine As GridLine
'Usage
 
Dim instance As SheetView
Dim value As GridLine
 
instance.ColumnHeaderHorizontalGridLine = value
 
value = instance.ColumnHeaderHorizontalGridLine
public GridLine ColumnHeaderHorizontalGridLine {get; set;}

Property Value

GridLine object containing the grid lines in the column header
Exceptions
ExceptionDescription
System.ArgumentNullException No value is specified (specified value is null)
Remarks

This property is available at run time only.

This property is equivalent to the ColumnHeader.HorizontalGridLine property.

Set the ColumnHeaderVerticalGridLine property to customize the display of the vertical grid line in the column headers.

Example
This example sets the horizontal and vertical grid lines in the headers to a different color and type.
fpSpread1.ActiveSheet.ColumnHeaderRowCount = 3;
fpSpread1.ActiveSheet.ColumnHeaderHorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat,
Color.Blue);
fpSpread1.ActiveSheet.ColumnHeaderVerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat,
Color.Blue);
FpSpread1.ActiveSheet.ColumnHeaderRowCount = 3
FpSpread1.ActiveSheet.ColumnHeaderHorizontalGridLine = New FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat,
Color.Blue)
FpSpread1.ActiveSheet.ColumnHeaderVerticalGridLine = New FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat,
Color.Blue)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
ColumnHeaderVerticalGridLine Property
HorizontalGridLine Property (ColumnHeader)

User-Task Documentation

Customizing the Header Grid Lines

 

 


Copyright © GrapeCity, inc. All rights reserved.