WebPartZoneBase::RestoreWebPart Method (WebPart^)
.NET Framework (current version)
Restores a selected WebPart control that was minimized to normal state.
Assembly: System.Web (in System.Web.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | 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
Available since 2.0
Show: