Spread Windows Forms 10.0 Product Documentation
SelectionTopColor Property
Example 


Gets or sets the color of the top of the gradient when the column or row of header cell contains a selection.
Syntax
'Declaration
 
Public Property SelectionTopColor As Color
'Usage
 
Dim instance As GradientHeaderRenderer
Dim value As Color
 
instance.SelectionTopColor = value
 
value = instance.SelectionTopColor
public Color SelectionTopColor {get; set;}
Example
This example sets the SelectionTopColor property.
FarPoint.Win.Spread.CellType.GradientHeaderRenderer gc = new FarPoint.Win.Spread.CellType.GradientHeaderRenderer();
gc.SelectionBottomColor = Color.LightSlateGray;
gc.SelectionTopColor = Color.Silver;           
fpSpread1.ActiveSheet.ColumnHeader.Rows[0].Renderer = gc;
Dim GC As New FarPoint.Win.Spread.CellType.GradientHeaderRenderer()
GC.SelectionBottomColor = Color.LightSlateGray
GC.SelectionTopColor = Color.Silver
FpSpread1.ActiveSheet.ColumnHeader.Rows(0).Renderer = GC
Requirements

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

See Also

Reference

GradientHeaderRenderer Class
GradientHeaderRenderer Members

 

 


Copyright © GrapeCity, inc. All rights reserved.