WebPartZoneBase.RestoreWebPart(WebPart) Method

Definition

Restores a selected WebPart control that was minimized to normal state.

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

Parameters

webPart
WebPart

The WebPart control to be restored.

Exceptions

webPart is null.

Remarks

If a zone's AllowLayoutChange property is set to true, and a WebPart control in that zone has its ChromeState property set to Minimized, invoking the RestoreWebPart method returns the control to Normal state, which means normal size and appearance.

Typically, the RestoreWebPart method is invoked when a user clicks the RestoreVerb verb.

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

Applies to

See also