Поделиться через


Item(Int32) Property

The Item property of the SPViewStyleCollection class gets the view style object at the specified index in the collection.

[C#] In C#, this property is an indexer for the SPViewStyleCollection class.

Parameters

iIndex   A 32-bit integer that specifies the index.

Property Value

A Microsoft.SharePoint.SPViewStyle object that represents the view style.

Remarks

To return a style, the Item property uses the index of the style in the collection, while the StyleByID method uses the ID specified in the file VWSTYLE.XML.

This property throws an ArgumentOutOfRangeException if the specified index is outside the valid range of indices for the collection.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security