Spread Windows Forms 6.0 Product Documentation
ColumnHeaderHorizontalGridLine Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ColumnHeaderHorizontalGridLine Property


Glossary Item Box

Gets or sets the horizontal grid line for the sheet.

Syntax

Visual Basic (Declaration) 
Public Property ColumnHeaderHorizontalGridLine As GridLine
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As GridLine
 
instance.ColumnHeaderHorizontalGridLine = value
 
value = instance.ColumnHeaderHorizontalGridLine
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.