共用方式為


WebPart.FrameState property

NOTE: This API is now obsolete.

取得或設定網頁組件圖文框,可以是標準的初始狀態 (擴充) 或最小化。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<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; }

Property value

Type: Microsoft.SharePoint.WebPartPages.FrameState
FrameState 列舉值。預設值為FrameState.Normal。

備註

如果falseAllowMinimize屬性的值,此屬性設定為FrameState.Minimized將不最小化網頁組件。

FrameState屬性可以由個別使用者個人化。其WebPartStorageAttribute值為Storage.Personal,這會指定的屬性可以儲存每個使用者為基礎。僅限具有個人化網頁組件頁面] 權限的使用者可以設定這個屬性。以程式設計方式設定,或者它可以設定透過 [網頁組件] 工作窗格,在個人檢視中的 Web 型使用者介面中,或使用SharePoint Foundation– 相容的 HTML 編輯器,例如SharePoint Designer。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace