Skip to main content
A newer version of this page is available. .

ContextItem.Glyph Property

Gets or sets the glyph displayed by the current item in the normal (not hovered) state.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.2.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
[DefaultValue(null)]
public virtual Image Glyph { get; set; }

Property Value

Type Default Description
Image *null*

An Image object that specifies the glyph displayed by the current item in the normal state.

Remarks

You can specify two glyphs for the current item to be displayed in the normal and hovered states. For this purpose, use the Glyph and ContextItem.HoverGlyph properties, respectively.

For the RatingContextButton object, the ContextItem descendant, the Glyph and ContextItem.HoverGlyph properties specify the rating point glyph in the normal and hovered states, respectively.

For the CheckContextButton, the Glyph property allows you to specify a custom glyph displayed instead the default check box in the unchecked state.

The Glyph property is equivalent to the ImageOptions.Image property (see ContextItem.ImageOptions).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Glyph property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also