WebPart.ContainerWidth 属性

请注意:此 API 现在已过时。

获取宽到设置页面作者作为对 Web 部件的操作的提示的值预期包含的 Web 部件区域,为。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use WebPartZone.ContainerWidth instead.")> _
Protected ReadOnly Property ContainerWidth As String
    Get
用法
Dim value As String

value = Me.ContainerWidth
[ObsoleteAttribute("Use WebPartZone.ContainerWidth instead.")]
protected string ContainerWidth { get; }

属性值

类型:System.String
指定为百分号 (%) 或像素 (像素) 的 CSS 宽度string 。

备注

仅在运行时是可用ContainerWidth属性的值。Web 部件呈现之前,可以更改EffectiveFrameType、 ContainerWidth和Permissions属性的值。这是因为ZoneID属性可能已更改,这会影响这些属性的值。这些属性都有其最终的值,并考虑所需的任何区域发生更改,当调用 Web 部件的RenderWebPart方法。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间