WebPart.EffectiveFrameType property
NOTE: This API is now obsolete.
取得用來在執行階段轉譯的網頁組件圖文框的框架類型。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use WebPartZone.GetEffectiveChromeType() instead.")> _
Public ReadOnly Property EffectiveFrameType As FrameType
Get
'用途
Dim instance As WebPart
Dim value As FrameType
value = instance.EffectiveFrameType
[ObsoleteAttribute("Use WebPartZone.GetEffectiveChromeType() instead.")]
public FrameType EffectiveFrameType { get; }
Property value
Type: Microsoft.SharePoint.WebPartPages.FrameType
其中一個FrameType列舉值。預設值為FrameType.Standard。
備註
這個屬性只有在執行階段。當網頁組件的FrameType值設為Default時, EffectiveFrameType屬性的值會FrameType.Standard ,除非包含網頁組件WebPartZoneFrameType屬性的值已設定,在此情況下EffectiveFrameType屬性會反映該值。
在 ASP.NET Render事件會呼叫之前,可以變更EffectiveFrameType、 ContainerWidth和Permissions屬性的值。這是因為ZoneID屬性可能已變更,而這會影響這些屬性的值。保證這些屬性都有其最終值,考慮到任何所需的區域變更為呼叫網頁組件RenderWebPart方法的帳戶。