WebPart.ChromeType WebPart.ChromeType WebPart.ChromeType WebPart.ChromeType Property

Definition

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

public:
 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); };
[System.Web.UI.WebControls.WebParts.Personalizable]
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

Exceptions

Remarks

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