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


Glossary Item Box

Gets or sets the color of the grid lines in the sheet.

Syntax

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

Property Value

Color object containing the color of the grid line

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 changes the color and configuration of the gridlines in the SheetView object.
C#Copy Code
FarPoint.Web.Spread.SheetViewsv=FpSpread1.ActiveSheetView;
sv.GridLines=GridLines.Horizontal;
sv.GridLineColor=Color.Red;
Visual BasicCopy Code
DimsvAsFarPoint.Web.Spread.SheetView
sv=FpSpread1.ActiveSheetView
sv.GridLines=GridLines.Horizontal
sv.GridLineColor=Color.Red

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.