This documentation is archived and is not being maintained.

ToolZone::HeaderCloseVerb Property

Gets a reference to the WebPartVerb object in the header of a ToolZone control that is used to close the control.

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

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

Property Value

Type: System.Web.UI.WebControls.WebParts::WebPartVerb
The WebPartVerb used to close a ToolZone control.

You can use the HeaderCloseVerb property programmatically or in the declarative markup of a Web page to specify various attributes for the verb that is used to close a ToolZone control.

The following code example shows how to use the HeaderCloseVerb property with an inherited ToolZone control. The example shows how to enable and disable the close verb in the header of an EditorZone control.

The first part of the code example is a user control that is referenced in the page, and enables you to switch the page to different display modes. For more information on display modes and enabling users to switch among them, see Walkthrough: Changing Display Modes on a Web Parts Page.

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

The second part of the code example is the Web page. The page contains an EditorZone control, which inherits from the ToolZone class. The Button1_Click method in the page sets the HeaderCloseVerb property value.

Note that after the page loads, you must switch the page into edit mode to see the effects of the code that uses the HeaderCloseVerb property on the EditorZone control. As you click the Enable/Disable Close Verb button, the verb in the header of the zone should be alternately enabled and disabled.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: