Spread Windows Forms 12.0 Product Documentation
ShowActive Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Appearance Class : ShowActive Property
Gets or sets whether the rendered item should display an active or hot state.
Syntax
'Declaration
 
Public Property ShowActive As Boolean
'Usage
 
Dim instance As Appearance
Dim value As Boolean
 
instance.ShowActive = value
 
value = instance.ShowActive
public bool ShowActive {get; set;}

Property Value

Boolean: true if the object being rendered should be shown as active; false otherwise
Remarks
The MouseOver property and ShowActive property can be used jointly to display whether the mouse is currently over the object in question being rendered and whether that item should be shown as active. The ShowActive property can be used, for instance, when you have multiple rows in the column header and, even though the mouse is over the top row, you want the bottom row to be shown as if the mouse is over it. This deals with visual styles header painting but could have other purposes.
Example
This example customizes the appearance object.
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(); 
appr.DisplayZero = false; 
appr.FilterState = FilterState.None; 
appr.MouseOver = true; 
appr.RightToLeft = false; 
appr.ShowActive = true; 
appr.SortState = SortState.None; 
appr.VisualStyles = FarPoint.Win.VisualStyles.On; 
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.SetAppearance(appr); 
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si);
Dim appr As New FarPoint.Win.Spread.Appearance()
appr.DisplayZero = False
appr.FilterState = FilterState.None
appr.MouseOver = True
appr.RightToLeft = False
appr.ShowActive = True
appr.SortState = SortState.None
appr.VisualStyles = FarPoint.Win.VisualStyles.On
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si)
See Also

Reference

Appearance Class
Appearance Members
VisualStyles Property

User-Task Documentation

Using XP Themes with the Component