WebPartZoneBase.MenuCheckImageStyle Property


Gets style attributes that are applied to the check mark image that appears on a verbs menu next to the selected verb text.

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

public Style MenuCheckImageStyle { get; }

Property Value

Type: System.Web.UI.WebControls.Style

A Style that contains the style attributes for check mark images in a verbs menu.

The MenuCheckImageStyle property applies only when there is a custom WebPartVerb object in a verbs menu that has its Checked property value set to true. The style attributes contained in the MenuCheckImageStyle property pertain to the style of the check mark image that appears next to the verb's text in the menu.

Each WebPart control in a WebPartZoneBase zone has its own verbs menu in its title bar. The verbs menu can contain both standard verbs included in the Web Parts control set, and custom WebPartVerb objects created by developers.

The standard verbs in a WebPart control verbs menu--including the verbs for exporting, deleting, and opening a Help page--are single-action verbs that carry out their tasks once and are done. There is no need to ever mark these verbs in the menu with a check mark, because none of them indicate any sort of continuing state. Therefore, the Checked property on these verbs cannot be set, and the MenuCheckImageStyle property does not apply to them at all.

However, developers can create a custom WebPartVerb control that might indicate a continuing state with a check mark, by setting its Checked property to true.

.NET Framework
Available since 2.0
Return to top