This documentation is archived and is not being maintained.

WebPart.EffectiveFrameType Property

Windows SharePoint Services 3

NOTE: This API is now obsolete.

Gets the frame type that is used to render the Web Part frame at run time.

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

[ObsoleteAttribute("Use WebPartZone.GetEffectiveChromeType() instead.")]
public FrameType EffectiveFrameType { get; }

Property Value

Type: Microsoft.SharePoint.WebPartPages.FrameType
One of the FrameType enumeration values. The default is FrameType.Standard.

This property is only available at run time. When the FrameType value of a Web Part is set to Default, the value of the EffectiveFrameType property will be FrameType.Standard , unless the value of the FrameType property of the WebPartZone that contains the Web Part has been set, in which case the EffectiveFrameType property will reflect that value.

The values of the EffectiveFrameType, ContainerWidth, and Permissions properties can change just before the Render event in ASP.NET is called. This is because the ZoneID property may have changed, which affects the values of these properties. These properties are guaranteed to have their final values, taking into account any needed zone changes, when the Web Part's RenderWebPart method is called.