从集合中返回具有指定 ID 的视图样式。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function StyleByID ( _
ID As Integer _
) As SPViewStyle
用法
Dim instance As SPViewStyleCollection
Dim ID As Integer
Dim returnValue As SPViewStyle
returnValue = instance.StyleByID(ID)
public SPViewStyle StyleByID(
int ID
)
参数
ID
类型:System.Int32一个 32 位整数,它指定视图的视图样式的 ID。
返回值
类型:Microsoft.SharePoint.SPViewStyle
一个代表的视图样式的SPViewStyle对象。
备注
若要返回样式, StyleByID方法,请使用 VWSTYLE 的文件中指定的 ID。XML,而Item属性集合中使用的样式的索引。
下表显示的 Id 和 Microsoft Windows SharePoint Services 的原始安装中包括的视图样式的名称。
值 |
说明 |
|---|---|
0 |
基本表格 |
6 |
图片库详细信息 |
7 |
没有名称 |
8 |
没有名称 |
9 |
没有名称 |
12 |
已装箱,无标签 |
13 |
已装箱 |
14 |
文档详细信息 |
15 |
新闻稿 |
16 |
新闻稿,无横格线 |
17 |
阴影 |
18 |
出版物已装箱 |
19 |
出版物已装箱,无标签 |