WebPartZoneBase::MinimizeWebPart Method (WebPart^)

 

Minimizes a selected WebPart control in a zone.

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

protected:
virtual void MinimizeWebPart(
	WebPart^ webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts::WebPart^

The WebPart control to be minimized.

Exception Condition
ArgumentNullException

webPart is null.

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.

.NET Framework
Available since 2.0
Return to top
Show: