Spread Windows Forms 12.0 Product Documentation
HighlightColor Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GridLine Class : HighlightColor Property
Gets the highlight color for the grid lines.
Syntax
'Declaration
 
Public ReadOnly Property HighlightColor As Color
'Usage
 
Dim instance As GridLine
Dim value As Color
 
value = instance.HighlightColor
public Color HighlightColor {get;}

Property Value

Color object containing the highlight color of the grid line
Remarks
The flat style grid line uses the Color property. The raised and lowered style grid lines use the HighlightColor and ShadowColor properties.
Example
This example illustrates the use of this member by returning the highlight color for the horizontal grid line.
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.HighlightColor.ToString();
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.HighlightColor.ToString()
See Also

Reference

GridLine Class
GridLine Members