Spread Windows Forms 9.0 Product Documentation
NamedStyles Property (SheetView)
Example 


Gets or sets a NamedStyleCollection of NamedStyle objects for this sheet.
Syntax
'Declaration
 
Public Property NamedStyles As NamedStyleCollection
'Usage
 
Dim instance As SheetView
Dim value As NamedStyleCollection
 
instance.NamedStyles = value
 
value = instance.NamedStyles
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.
FarPoint.Win.Spread.NamedStyle style = new FarPoint.Win.Spread.NamedStyle();
style.BackColor = Color.LightBlue;
fpSpread1.ActiveSheet.NamedStyles.Add(style);
fpSpread1.ActiveSheet.DefaultStyle = style;
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Creating and Applying a Style for Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.