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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for