Spread Windows Forms 12.0 Product Documentation
GridLine Constructor(GridLineType,Color)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GridLine Class > GridLine Constructor : GridLine Constructor(GridLineType,Color)
Type of grid line
Color of grid line
Creates a new grid line of the specified line type and color.
Syntax
'Declaration
 
Public Function New( _
   ByVal type As GridLineType, _
   ByVal color As Color _
)
'Usage
 
Dim type As GridLineType
Dim color As Color
 
Dim instance As New GridLine(type, color)
public GridLine( 
   GridLineType type,
   Color color
)

Parameters

type
Type of grid line
color
Color of grid line
Remarks
The flat style grid line uses the Color property. The raised and lowered style grid lines use the HighlightColor and ShadowColor properties.
Example
This example sets the type and color of grid line to use for the horizontal grid line.
FarPoint.Win.Spread.GridLine gl = new FarPoint.Win.Spread.GridLine(GridLineType.Flat, Color.Blue);
fpSpread1.ActiveSheet.HorizontalGridLine = gl;
textBox1.Text = fpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString();
Dim gl As New FarPoint.Win.Spread.GridLine(GridLineType.Flat, Color.Blue)
FpSpread1.ActiveSheet.HorizontalGridLine = gl
TextBox1.Text = FpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString()
See Also

Reference

GridLine Class
GridLine Members
Overload List