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


Glossary Item Box

Gets or sets whether to display grid lines in the sheet.

Syntax

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

Property Value

GridLines setting that specifies which grid lines are displayed

Remarks

This property uses the GridLines enumeration. The possible values are:

  • Both - Displays both horizontal and vertical grid lines
  • Horizontal - Displays only horizontal grid lines
  • Vertical - Displays only vertical grid lines
  • None - Displays no grid lines

For more information about the GridLines enumeration, refer to the .NET Framework Reference.

To specify the color of the grid lines, set the GridLineColor property.

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.