共用方式為


WebPartZone.ContainerWidth property

取得或設定包含 Web 組件的區域寬度的提示。

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

Syntax

'宣告
Public Property ContainerWidth As String
    Get
    Set
'用途
Dim instance As WebPartZone
Dim value As String

value = instance.ContainerWidth

instance.ContainerWidth = value
public string ContainerWidth { get; set; }

Property value

Type: System.String
String值,指出區域的寬度。

備註

ContainerWidth屬性可對任何有效的 CSS 寬度值。Orientation設定為Horizontal時,無法設定屬性。

請參閱

參照

WebPartZone class

WebPartZone members

Microsoft.SharePoint.WebPartPages namespace