ChromeState Property

WebPart.ChromeState Property

Note: This property is new in the .NET Framework version 2.0.

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)

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2016 Microsoft