WebPartZoneBase::MenuLabelHoverStyle Property

 

Gets style attributes that are applied to the label of a verbs menu in the title bar of a WebPart control when a user positions the mouse pointer over the label.

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

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

Property Value

Type: System.Web.UI.WebControls::Style^

A Style that contains the style attributes for the label in a verbs menu.

The MenuLabelHoverStyle property affects the style of the entire label for the verbs menu in each Web Parts control in a zone.

The following code example demonstrates the declarative use of the MenuLabelHoverStyle 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 MenuLabelHoverStyle 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 position your mouse pointer over the verbs menu of the Web Parts control. Notice that the text of the label turns bold.

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

.NET Framework
Available since 2.0
Return to top
Show: