WebPartZoneBase.RestoreWebPart 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.

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

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

protected virtual void RestoreWebPart(
	WebPart webPart


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

The WebPart control to be restored.

Exception Condition

webPart is null.

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.

.NET Framework
Available since 2.0
Return to top