ChromeState Property

WebPart.ChromeState Property

Gets or sets whether a part control is in a minimized or normal state.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public override PartChromeState ChromeState { get; set; }
/** @property */
public PartChromeState get_ChromeState ()

/** @property */
public void set_ChromeState (PartChromeState value)

public override function get ChromeState () : PartChromeState

public override function set ChromeState (value : PartChromeState)

Not applicable.

Property Value

One of the PartChromeState values. The default is Normal.

Exception typeCondition


The value specified is not one of the PartChromeState values.

A part control's ChromeState property value can be normal or minimized. 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 ChromeState property.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft