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 displayedThis 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.
This example changes the color and configuration of the gridlines in the SheetView object.
C# | Copy Code |
---|---|
FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView; sv.GridLines=GridLines.Horizontal; sv.GridLineColor=Color.Red; |
Visual Basic | Copy Code |
---|---|
Dim sv As FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView sv.GridLines=GridLines.Horizontal sv.GridLineColor=Color.Red |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
Reference
SheetView ClassSheetView Members
GridLineColor Property