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


type
Type of grid line

Glossary Item Box

Creates a new grid line of the specified line type.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal type As GridLineType _
)
Visual Basic (Usage)Copy Code
Dim type As GridLineType
 
Dim instance As New GridLine(type)
C# 
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.
C#Copy Code
FarPoint.Win.Spread.GridLine gl = new FarPoint.Win.Spread.GridLine(GridLineType.Raised);
fpSpread1.ActiveSheet.HorizontalGridLine = gl;
textBox1.Text = fpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString();
Visual BasicCopy Code
Dim gl As New FarPoint.Win.Spread.GridLine(GridLineType.Raised)
FpSpread1.ActiveSheet.HorizontalGridLine = gl
TextBox1.Text = FpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString()

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.