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


Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Property VisualStyles As VisualStyles
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
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

Remarks

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.

Example

This example sets the VisualStyles property.
C#Copy Code
fpSpread1.VisualStyles = FarPoint.Win.VisualStyles.On;
Visual BasicCopy Code
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.On

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FpSpread Class
FpSpread Members

User-Task Documentation

Using XP Themes

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