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

Glossary Item Box

Gets or sets whether to use visual styles when rendering objects in the control.


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

Property Value

VisualStyles setting that determines the visual appearance of the display of the component


This property is used on controls that Spread renders, such as a button in a button type cell (ButtonCellType). For controls that are rendered by something other than Spread, such as the scroll bars, which are children controls rendered by Visual Studio (not by Spread), you must set up a manifest for your application to have them render with XP themes.


This example sets the VisualStyles property.
C#Copy Code
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.VisualStyles = FarPoint.Win.VisualStyles.On;
VB.NETCopy Code
Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
sv.VisualStyles = FarPoint.Win.VisualStyles.On


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


SpreadView Class
SpreadView Members

User-Task Documentation

Using XP Themes

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