Spread Windows Forms 11.0 Product Documentation
VisualStyles Field
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetStyleProperty Class : VisualStyles Field
Represents the visual style setting of the sheet style.
Syntax
'Declaration
 
Public Shared ReadOnly VisualStyles As SheetStyleProperty
'Usage
 
Dim value As SheetStyleProperty
 
value = SheetStyleProperty.VisualStyles
public static readonly SheetStyleProperty VisualStyles
Example
This example sets the setting of visual styles (XP themes) for the sheet.
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.CanFocus = false; 
si.NoteStyle = NoteStyle.StickyNote; 
si.TabStop = false; 
si.VisualStyles = FarPoint.Win.VisualStyles.On; 
fpSpread1.ActiveSheet.DefaultStyle = si; 
bool b = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.VisualStyles); 
if (b == true) { 
     MessageBox.Show("The visual styles setting is " + si.VisualStyles.ToString()); 
}
Dim si As New FarPoint.Win.Spread.StyleInfo
si.CanFocus = False
si.NoteStyle = NoteStyle.StickyNote
si.TabStop = False
si.VisualStyles = FarPoint.Win.VisualStyles.On
FpSpread1.ActiveSheet.DefaultStyle = si
Dim b As Boolean = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.VisualStyles)
If b = True Then
    MessageBox.Show("The visual styles setting is " & si.VisualStyles.ToString())
End If
See Also

Reference

SheetStyleProperty Class
SheetStyleProperty Members