This documentation is archived and is not being maintained.

ToolZone::HeaderVerbStyle Property

Gets the style attributes for all header verbs displayed in a ToolZone control.

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

[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
public:
property Style^ HeaderVerbStyle {
	Style^ get ();
}

Property Value

Type: System.Web.UI.WebControls::Style
A Style that contains style attributes for header verbs within a ToolZone.

The HeaderVerbStyle property, though it is read-only, enables you to get or set the style attributes of the underlying Style object for all the header verbs in a ToolZone control.

The following code example shows how to use the HeaderVerbStyle property with an inherited ToolZone control. The example shows how to change the width of the border around an EditorZone control by using this property.

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 HeaderVerbStyle 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 Toggle Header Verb Border button, the border width around the zone should change.

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

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: