This documentation is archived and is not being maintained.

ViewStyles Property

SharePoint 2003

The ViewStyles property of the SPWeb class gets the collection of view styles for the Web site.

Property Value

A Microsoft.SharePoint.SPViewStyleCollection object that represents the view styles.

Example

The following example uses the ViewStyles property to return the collection of view styles for a site and applies a Newsletter style (15) to a view for a list in the specified site.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security

Show: