Spread Windows Forms 7.0 Product Documentation
GridLine Constructor(GridLineType,Color)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GridLine Class > GridLine Constructor : GridLine Constructor(GridLineType,Color)


type
Type of grid line
color
Color of grid line

Glossary Item Box

Creates a new grid line of the specified line type and color.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal type As GridLineType, _
   ByVal color As Color _
)
Visual Basic (Usage)Copy Code
Dim type As GridLineType
Dim color As Color
 
Dim instance As New GridLine(type, color)
C# 
public GridLine( 
   GridLineType type,
   Color color
)

Parameters

type
Type of grid line
color
Color of grid line

Example

This example sets the type and color of grid line to use for the horizontal grid line.
C#Copy Code
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();
Visual BasicCopy Code
Dim gl As New FarPoint.Win.Spread.GridLine(GridLineType.Flat, Color.Blue)
FpSpread1.ActiveSheet.HorizontalGridLine = gl
TextBox1.Text = FpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString()

Requirements

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

See Also

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