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


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

Parameters

type
Type of grid line
Example
This example sets the type of grid line to use for the horizontal grid line.
FarPoint.Win.Spread.GridLine gl = new FarPoint.Win.Spread.GridLine(GridLineType.Raised);
fpSpread1.ActiveSheet.HorizontalGridLine = gl;
textBox1.Text = fpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString();
Dim gl As New FarPoint.Win.Spread.GridLine(GridLineType.Raised)
FpSpread1.ActiveSheet.HorizontalGridLine = gl
TextBox1.Text = FpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString()
See Also

Reference

GridLine Class
GridLine Members
Overload List