Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / GridLine Class / GridLine Constructor / GridLine Constructor(GridLineType,Color,Color,Color)
Type of grid line
Color of grid line
Highlight color for the grid line
Shadow color for the grid line

In This Topic
    GridLine Constructor(GridLineType,Color,Color,Color)
    In This Topic
    Creates a new grid line of the specified line type and colors.
    Public Function New( _
       ByVal type As GridLineType, _
       ByVal color As Color, _
       ByVal highlightColor As Color, _
       ByVal shadowColor As Color _
    Dim type As GridLineType
    Dim color As Color
    Dim highlightColor As Color
    Dim shadowColor As Color
    Dim instance As New GridLine(type, color, highlightColor, shadowColor)
    public GridLine( 
       GridLineType type,
       Color color,
       Color highlightColor,
       Color shadowColor


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