Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal type As GridLineType, _ ByVal color As Color, _ ByVal highlightColor As Color, _ ByVal shadowColor As Color, _ ByVal width As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim type As GridLineType Dim color As Color Dim highlightColor As Color Dim shadowColor As Color Dim width As Integer Dim instance As New GridLine(type, color, highlightColor, shadowColor, width) |
C# | |
---|---|
public GridLine( GridLineType type, Color color, Color highlightColor, Color shadowColor, int width ) |
Parameters
- type
- Type of grid line
- color
- Color of grid line
- highlightColor
- Highlight color for the grid line
- shadowColor
- Shadow color for the grid line
- width
- Width of grid line
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | The type is not one of the BorderStyle values. |
System.ArgumentOutOfRangeException | The width is less that -1. |
This example sets the type and colors of grid line to use for the horizontal grid line.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.GridLine gl = new FarPoint.Win.Spread.GridLine(GridLineType.Raised, Color.Blue, Color.DarkBlue, Color.LightBlue,
2);
fpSpread1.ActiveSheet.HorizontalGridLine = gl;
textBox1.Text = fpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString();
|
Visual Basic | Copy Code |
---|---|
Dim gl As New FarPoint.Win.Spread.GridLine(GridLineType.Raised, Color.Blue, Color.DarkBlue, Color.LightBlue, 2) FpSpread1.ActiveSheet.HorizontalGridLine = gl TextBox1.Text = FpSpread1.ActiveSheet.HorizontalGridLine.Type.ToString() |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8