Spread Windows Forms 7.0 Product Documentation
VisualStyles Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Appearance Class : VisualStyles Property


Glossary Item Box

Gets or sets whether to render using visual styles.

Syntax

Visual Basic (Declaration) 
Public Property VisualStyles As VisualStyles
Visual Basic (Usage)Copy Code
Dim instance As Appearance
Dim value As VisualStyles
 
instance.VisualStyles = value
 
value = instance.VisualStyles
C# 
public VisualStyles VisualStyles {get; set;}

Property Value

VisualStyles setting that determines the visual appearance

Example

This example customizes the appearance object and turns on the visual styles setting.
C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.