SPViewStyleCollection.Item 属性 (Int32)

获取集合中指定索引处的视图样式的对象。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPViewStyle
    Get
用法
Dim instance As SPViewStyleCollection
Dim iIndex As Integer
Dim value As SPViewStyle

value = instance(iIndex)
public SPViewStyle this[
    int iIndex
] { get; }

参数

  • iIndex
    类型:System.Int32

    32 位整数,指定的索引。

属性值

类型:Microsoft.SharePoint.SPViewStyle
一个代表的视图样式的SPViewStyle对象。

备注

若要返回样式, Item属性使用的样式的索引在集合中,而**StyleByID()**属性使用 VWSTYLES 的文件中指定的 ID。XML。

如果指定的索引超出集合的索引的有效范围,则此属性将引发异常ArgumentOutOfRangeException 。

在 C# 中,此属性是SharePointSPViewStyleCollection类索引器。

另请参阅

引用

SPViewStyleCollection 类

SPViewStyleCollection 成员

Item 重载

Microsoft.SharePoint 命名空间