WebPart.ChromeType Property

Definition

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

C#
[System.Web.UI.WebControls.WebParts.Personalizable]
public override System.Web.UI.WebControls.WebParts.PartChromeType ChromeType { get; set; }

Property Value

One of the PartChromeType values. The default is Default.

Attributes

Exceptions

The value is not one of the PartChromeType values.

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

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also