WebPart.SuppressWebPartChrome property
Gets or sets whether chrome is displayed for a static Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage := Storage.None)> _
Public Property SuppressWebPartChrome As Boolean
Get
Set
'Usage
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 if chrome is not displayed when the Web Part is outside a Web Part zone; otherwise, false. The default value is false.
Remarks
Setting the value of this property has meaning only for a static Web Part (one not located in a zone). In that case, if the value is true, the control’s border and title bar are not displayed. If the value is false, the elements of chrome that display are determined by the value of the control’s ChromeType property.