WebPartZoneBase.MinimizeWebPart(WebPart) Method

Definition

Minimizes a selected WebPart control in a zone.

protected:
 virtual void MinimizeWebPart(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected virtual void MinimizeWebPart (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member MinimizeWebPart : System.Web.UI.WebControls.WebParts.WebPart -> unit
override this.MinimizeWebPart : System.Web.UI.WebControls.WebParts.WebPart -> unit
Protected Overridable Sub MinimizeWebPart (webPart As WebPart)

Parameters

webPart
WebPart

The WebPart control to be minimized.

Exceptions

webPart is null.

Remarks

The MinimizeWebPart method is called when a user clicks the minimize verb on a WebPart control. The method sets the ChromeState property value for the selected WebPart control to Minimized. A minimized WebPart control collapses within its zone and hides its contents, and only its title bar remains visible.

The method should only be used by derived WebPartZoneBase zones such as WebPartZone.

Applies to

See also