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


Glossary Item Box

Gets or sets a NamedStyleCollection of NamedStyle objects for this sheet.

Syntax

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

Property Value

NamedStyleCollection object containing the collection of styles

Remarks

By default, this collection of named styles is shared between all sheets and style models in the component. When set, the sheets and style models in the component that referenced the old named style (from the NamedStyleCollection object) are updated to refer to the new one.

This property is available at run time only.

Example

This example creates a named style and adds it to the collection of named styles of the active sheet.
C#Copy Code
FarPoint.Win.Spread.NamedStyle style = new FarPoint.Win.Spread.NamedStyle();
style.BackColor = Color.LightBlue;
fpSpread1.ActiveSheet.NamedStyles.Add(style);
fpSpread1.ActiveSheet.DefaultStyle = style;
Visual BasicCopy Code
Dim style As New FarPoint.Win.Spread.NamedStyle()
style.BackColor = Color.LightBlue
FpSpread1.ActiveSheet.NamedStyles.Add(style)
FpSpread1.ActiveSheet.DefaultStyle = style

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

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