共用方式為


WebPart.SuppressWebPartChrome property

取得或設定是否 chrome 顯示靜態網頁組件。

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

Syntax

'宣告
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage := Storage.None)> _
Public Property SuppressWebPartChrome As Boolean
    Get
    Set
'用途
Dim instance As WebPart
Dim value As Boolean

value = instance.SuppressWebPartChrome

instance.SuppressWebPartChrome = value
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage = Storage.None)]
public bool SuppressWebPartChrome { get; set; }

Property value

Type: System.Boolean
true如果外的網頁組件區域 ; [網頁組件時不顯示 chrome否則,請false。預設值為false。

備註

設定此屬性的值只的有意義靜態的網頁組件 (一個並非位於區域)。在此情況下,如果true值,此控制項的框線與標題列不會顯示。如果值為false,所顯示的 chrome 元素取決於控制項的ChromeType屬性的值。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace