Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WebPart.FrameState property

NOTE: This API is now obsolete.

Gets or sets the initial state of the Web Part frame, which can be normal (expanded) or minimized.

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

'Declaration
<ObsoleteAttribute("Use ChromeState instead.")> _
<WebPartStorageAttribute(Storage := Storage.Personal)> _
Public Property FrameState As FrameState
	Get
	Set
'Usage
Dim instance As WebPart
Dim value As FrameState

value = instance.FrameState

instance.FrameState = value

Property value

Type: Microsoft.SharePoint.WebPartPages.FrameState
A FrameState enumeration value. The default value is FrameState.Normal.

If the value of the AllowMinimize property is false, setting this property to FrameState.Minimized will not minimize the Web Part.

The FrameState property can be personalized by individual users. Its WebPartStorageAttribute value is Storage.Personal, which specifies that the property can be stored on a per-user basis. Only users with the Personalize Web Part pages right can set this property. It can be set programmatically, or it can be set through the Web Part task pane in the personal view of the Web-based user interface, or by using a SharePoint Foundation–compatible HTML editor, such as SharePoint Designer.

Show:
© 2015 Microsoft