| Visual Basic (Declaration) | |
|---|---|
Public Function New()  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As New GridLine()  | |
| C# | |
|---|---|
public GridLine()  | |
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 Basic |  Copy Code | 
|---|---|
Dim gl As New FarPoint.Win.Spread.GridLine gl = FpSpread1.ActiveSheet.HorizontalGridLine TextBox1.Text = gl.Color.ToString()  | |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8