WebPartZoneBase.RestoreWebPart(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.
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
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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for