WebPart.FrameState 属性
请注意:此 API 现在已过时。
获取或设置 Web 部件框架,可以是正常的初始状态 (扩展) 或最小化。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Use ChromeState instead.")> _
<WebPartStorageAttribute(Storage := Storage.Personal)> _
Public Property FrameState As FrameState
Get
Set
用法
Dim instance As WebPart
Dim value As FrameState
value = instance.FrameState
instance.FrameState = value
[ObsoleteAttribute("Use ChromeState instead.")]
[WebPartStorageAttribute(Storage = Storage.Personal)]
public FrameState FrameState { get; set; }
属性值
类型:Microsoft.SharePoint.WebPartPages.FrameState
一个FrameState枚举值。默认值是FrameState.Normal。
备注
如果AllowMinimize属性的值为false,该属性设置为FrameState.Minimized将不最小化 Web 部件。
FrameState属性可由单个用户进行个性化设置。其WebPartStorageAttribute值为Storage.Personal,它指定的属性可以存储基于每个用户。只有具有个性化 Web 部件页右侧的用户可以设置该属性。以编程方式,可以将或通过基于 Web 的用户界面,或使用SharePoint Foundation的个人视图中的 Web 部件任务窗格可以将设置 – 兼容的 HTML 编辑器如SharePoint Designer。