Spread ASP.NET 6.0 Product Documentation
GridLineColor Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class : GridLineColor Property


Glossary Item Box

Gets the color of the grid lines on the sheet.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property GridLineColor As Color
Visual Basic (Usage)Copy Code
Dim instance As SheetSkin
Dim value As Color
 
value = instance.GridLineColor
C# 
public Color GridLineColor {get;}

Property Value

Color object that contains the color of the grid lines

Remarks

To set whether the sheet displays horizontal grid lines, vertical grid lines, or both, use the GridLines property.

This property does not have an effect if the GridLines property is set to None.

Example

This example shows the use of the property by returning all the properties for the skin.
C#Copy Code
FarPoint.Web.Spread.SheetSkin myskin = new FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Color.Empty, Color.Empty, false, false, true, true, true);
myskin.Apply(FpSpread1);

ListBox1.Items.Add(myskin.BackColor.ToString());
ListBox1.Items.Add(myskin.CellBackColor.ToString());
ListBox1.Items.Add(myskin.CellForeColor.ToString());
ListBox1.Items.Add(myskin.EvenRowBackColor.ToString());
ListBox1.Items.Add(myskin.FlatColumnHeader.ToString());
ListBox1.Items.Add(myskin.FlatRowHeader.ToString());
ListBox1.Items.Add(myskin.GridLineColor.ToString()); 
ListBox1.Items.Add(myskin.GridLines.ToString());
ListBox1.Items.Add(myskin.HeaderBackColor.ToString());
ListBox1.Items.Add(myskin.HeaderFontBold.ToString()); 
ListBox1.Items.Add(myskin.HeaderForeColor.ToString());
ListBox1.Items.Add(myskin.Name.ToString());
ListBox1.Items.Add(myskin.OddRowBackColor.ToString()); 
ListBox1.Items.Add(myskin.SelectionBackColor.ToString());
ListBox1.Items.Add(myskin.SelectionForeColor.ToString());
ListBox1.Items.Add(myskin.ShowColumnHeader.ToString());
ListBox1.Items.Add(myskin.ShowRowHeader.ToString());
Visual BasicCopy Code
Dim myskin As New FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Nothing, Nothing, False, False, True, True, True)
myskin.Apply(FpSpread1)

ListBox1.Items.Add(myskin.BackColor.ToString())
ListBox1.Items.Add(myskin.CellBackColor.ToString())
ListBox1.Items.Add(myskin.CellForeColor.ToString())
ListBox1.Items.Add(myskin.EvenRowBackColor.ToString())
ListBox1.Items.Add(myskin.FlatColumnHeader.ToString())
ListBox1.Items.Add(myskin.FlatRowHeader.ToString())
ListBox1.Items.Add(myskin.GridLineColor.ToString())
ListBox1.Items.Add(myskin.GridLines.ToString())
ListBox1.Items.Add(myskin.HeaderBackColor.ToString())
ListBox1.Items.Add(myskin.HeaderFontBold.ToString())
ListBox1.Items.Add(myskin.HeaderForeColor.ToString())
ListBox1.Items.Add(myskin.Name.ToString())
ListBox1.Items.Add(myskin.OddRowBackColor.ToString())
ListBox1.Items.Add(myskin.SelectionBackColor.ToString())
ListBox1.Items.Add(myskin.SelectionForeColor.ToString())
ListBox1.Items.Add(myskin.ShowColumnHeader.ToString())
ListBox1.Items.Add(myskin.ShowRowHeader.ToString())

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.