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


Glossary Item Box

Creates a new grid line.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New GridLine()
C# 
public GridLine()

Example

This example creates a grid line and returns the color of the horizontal grid line.
C#Copy Code
FarPoint.Win.Spread.GridLine gl = new FarPoint.Win.Spread.GridLine();
gl = fpSpread1.ActiveSheet.HorizontalGridLine;
textBox1.Text = gl.Color.ToString();
Visual BasicCopy Code
Dim gl As New FarPoint.Win.Spread.GridLine
gl = FpSpread1.ActiveSheet.HorizontalGridLine
TextBox1.Text = gl.Color.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.