WebPartZoneBase.MinimizeWebPart(WebPart) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.