Bewerken

Delen via


WebPartZoneBase.MenuCheckImageStyle Property

Definition

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

public:
 property System::Web::UI::WebControls::Style ^ MenuCheckImageStyle { System::Web::UI::WebControls::Style ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.Style MenuCheckImageStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.MenuCheckImageStyle : System.Web.UI.WebControls.Style
Public ReadOnly Property MenuCheckImageStyle As Style

Property Value

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

Attributes

Remarks

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.

Applies to

See also