StyleByID(Int32) Method
The StyleByID method of the SPViewStyleCollection class returns the view style with the specified ID from the collection.
Parameters
ID A 32-bit integer that specifies the ID of the view style.
Return Value
A Microsoft.SharePoint.SPViewStyle object that represents the view style.
Remarks
To return a style, the StyleByID method uses the ID specified in the file VWSTYLE.XML, while the Item(Int32) property uses the index of the style in the collection.
The following table shows the IDs and names of view styles that are included in the original installation of Microsoft Windows SharePoint Services.
Value | Description |
---|---|
0 | Basic Table |
6 | Picture Library Details |
7 | No name |
8 | No name |
9 | No name |
12 | Boxed, no labels |
13 | Boxed |
14 | Document Details |
15 | Newsletter |
16 | Newsletter, no lines |
17 | Shaded |
18 | Issues Boxed |
19 | Issues Boxed, no labels |
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security