WebPartZoneBase.MinimizeWebPart Method (WebPart)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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


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

The WebPart control to be minimized.

Exception Condition

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