WebPartZoneBase.MenuLabelStyle Property

Note: This property is new in the .NET Framework version 2.0.

Gets style information for the label of the verbs drop-down menu that appears in the title bar of each WebPart control in a zone.

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

public:
property Style^ MenuLabelStyle {
	Style^ get ();
}
/** @property */
public Style get_MenuLabelStyle ()

public function get MenuLabelStyle () : Style

Property Value

A Style that contains style information for the label of the verbs menu.

The MenuLabelStyle property affects the style of the label on the verbs menu of each Web Parts control in a zone, regardless of whether the label contains an image, text, or both.

The following code example demonstrates the declarative use of the MenuLabelStyle property on a WebPartZone control. For the full code example, including the code-behind source file and the .aspx page that contains the zone in this code, see the WebPartZoneBase class overview.

Notice that the MenuLabelStyle property has a value assigned to it in the declarative markup. This value impacts WebPartZone2. After you load the page into a browser, switch the page into edit mode, and notice that the color for the verbs menu label in WebPartZone2 is the color assigned to it in the declarative markup.

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

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: