Partilhar via


WebPart.FrameType Property

NOTE: This API is now obsolete.

Gets or sets the style of the Web Part frame.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.FrameType

instance.FrameType = value
[WebPartStorageAttribute(Storage = Storage.Personal)]
[ObsoleteAttribute("Use ChromeType instead.")]
public FrameType FrameType { get; set; }

Property Value

Type: Microsoft.SharePoint.WebPartPages.FrameType
A FrameType enumeration value. The default value is FrameType.Default.

Remarks

The FrameType 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.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace