Spread Windows Forms 8.0 Product Documentation
GridLines Enumeration
Example Example 


Specifies whether horizontal or vertical grid lines or both are displayed on the sheet.
Syntax
'Declaration
 
Public Enum GridLines 
   Inherits System.Enum
'Usage
 
Dim instance As GridLines
public enum GridLines : System.Enum 
Members
MemberDescription
BothDisplays both horizontal and vertical grid lines on the sheet
HorizontalDisplays horizontal grid lines on the sheet
NoneDoes not display grid lines on the sheet
VerticalDisplays vertical grid lines on the sheet
Remarks

For more information about grid lines, refer to Displaying Grid Lines on the Sheet.

Example
FarPoint.Win.Spread.SheetSkin sk, sk1;
sk = new FarPoint.Win.Spread.SheetSkin("TestSkin", Color.LightBlue, Color.Blue, Color.White, Color.Gray, FarPoint.Win.Spread.GridLines.Both,
Color.Red, Color.Black, Color.Orange, Color.Black, Color.Empty, Color.Empty, true, true, true, true, true);
sk.Apply(fpSpread1);
sk1 = fpSpread1.ActiveSheet.ActiveSkin;
label1.Text = "The name of the active skin is - " + sk1.Name.ToString();
Dim sk, sk1 As FarPoint.Win.Spread.SheetSkin
sk = New FarPoint.Win.Spread.SheetSkin("TestSkin", Color.LightBlue, Color.Blue, Color.White, Color.Gray, FarPoint.Win.Spread.GridLines.Both,
Color.Red, Color.Black, Color.Orange, Color.Black, Nothing, Nothing, True, True, True, True, True)
sk.Apply(FpSpread1)
sk1 = FpSpread1.ActiveSheet.ActiveSkin
Label1.Text = "The name of the active skin is - " & sk1.Name.ToString()
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.GridLines

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

FarPoint.Win.Spread Namespace
GridLines Property (SheetSkin Class)

User-Task Documentation

Displaying Grid Lines on the Sheet

 

 


Copyright © GrapeCity, inc. All rights reserved.