This documentation is archived and is not being maintained.

WebPartZoneBase::RestoreVerb Property

Gets a reference to a WebPartVerb object that enables end users to restore WebPart controls in a zone to normal size.

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

[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
public:
virtual property WebPartVerb^ RestoreVerb {
	WebPartVerb^ get ();
}

Property Value

Type: System.Web.UI.WebControls.WebParts::WebPartVerb
A WebPartVerb that enables end users to restore WebPart controls.

The restore verb referenced by the RestoreVerb property appears within the verbs menu of each WebPart control in a zone, when a control is minimized. The verb appears in the menu in all page display modes.

Restoring a control expands it back to its normal size after the control has been previously minimized.

The following code example demonstrates the use of the RestoreVerb property on a WebPartZone control. For the code example to work, you need all the code from the Example section of the HelpVerb property.

The following part of the code example is from the partial class, and contains the code that toggles whether the restore verb is enabled or disabled.

No code example is currently available or this language may not be supported.

The other part of the code example is the Web page that hosts the custom WebPart control and contains the user interface (UI). Notice that the declarative <RestoreVerb> element in the zone sets the value for the Description attribute text, which appears as a ToolTip when a user positions the mouse pointer over the verb in the verbs menu.

No code example is currently available or this language may not be supported.

After you load the page in a browser, switch the page into catalog display mode, and add the TextDisplayWebPart control to the page, if it has not been added. Use the minimize verb to minimize the control, and note that the restore verb becomes visible. You can use the check boxes to enable and disable the restore verb.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: