Spread for ASP.NET 7.0 Product Documentation
SheetView Constructor(NamedStyleCollection)
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > SheetView Constructor : SheetView Constructor(NamedStyleCollection)


namedStyles
NamedStyleCollection object to use

Glossary Item Box

Creates a sheet (SheetView object) with the specified style collection.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal namedStyles As NamedStyleCollection _
)
Visual Basic (Usage)Copy Code
Dim namedStyles As NamedStyleCollection
 
Dim instance As New SheetView(namedStyles)
C# 
public SheetView( 
   NamedStyleCollection namedStyles
)

Parameters

namedStyles
NamedStyleCollection object to use

Example

C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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