WebPartZoneBase.MinimizeVerb Property
Assembly: System.Web (in system.web.dll)
The minimize verb referenced by the MinimizeVerb property appears in the verbs menu of each WebPart control in a zone. The verb appears in all page display modes.
Minimizing a control collapses it down to a smaller size, leaves only the title bar of the control visible, and makes a restore verb visible in the title bar.
The following code example demonstrates the use of the MinimizeVerb 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 minimize verb is enabled or disabled.
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 <MinimizeVerb> 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.
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. You can use the check boxes to enable and disable the minimize verb on the TextDisplayWebPart control. When the verb is enabled, you can also click it to minimize the control.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.