WebPart.ChromeType Property


Gets or sets the type of border that frames a Web Parts control.

 virtual property System::Web::UI::WebControls::WebParts::PartChromeType ChromeType { System::Web::UI::WebControls::WebParts::PartChromeType get(); void set(System::Web::UI::WebControls::WebParts::PartChromeType value); };
public override System.Web.UI.WebControls.WebParts.PartChromeType ChromeType { get; set; }
member this.ChromeType : System.Web.UI.WebControls.WebParts.PartChromeType with get, set
Public Overrides Property ChromeType As PartChromeType

Property Value

One of the PartChromeType values. The default is Default.



The value is not one of the PartChromeType values.


A part control's WebPartManager property determines what kind of border surrounds the control. Options include showing a title only, a border only, a title and border, neither, or the default option, which simply uses the value of the PartChromeType property.

The WebPart class overrides the base property so that end users can personalize it.

For a code example that uses this property, see the base ChromeType property.

Applies to

See also