Spread for ASP.NET 11 Product Documentation
SheetView Constructor(NamedStyleCollection)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > SheetView Constructor : SheetView Constructor(NamedStyleCollection)
NamedStyleCollection object to use
Creates a sheet (SheetView object) with the specified style collection.
Syntax
'Declaration
 
Public Function New( _
   ByVal namedStyles As NamedStyleCollection _
)
'Usage
 
Dim namedStyles As NamedStyleCollection
 
Dim instance As New SheetView(namedStyles)
public SheetView( 
   NamedStyleCollection namedStyles
)

Parameters

namedStyles
NamedStyleCollection object to use
Example
FarPoint.Web.Spread.NamedStyleCollection nsc = new FarPoint.Web.Spread.NamedStyleCollection();
FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle("StyleData", "DataAreaDefault");
ns.BackColor = Color.Yellow;
nsc.Add(ns);
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView(nsc);
Dim nsc As New FarPoint.Web.Spread.NamedStyleCollection
Dim ns As New FarPoint.Web.Spread.NamedStyle("StyleData", "DataAreaDefault")
ns.BackColor = Color.Yellow
nsc.Add(ns)
Dim sv As New FarPoint.Web.Spread.SheetView(nsc)
See Also

Reference

SheetView Class
SheetView Members
Overload List