HKeyPrefix Enum
Provides values that indicate different ways to interpret an ampersand character (&) in item captions.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v18.1.dll
Declaration
[ResourceFinder(typeof(ResFinder), "PropertyNamesRes")]
[TypeConverter(typeof(EnumTypeConverter))]
public enum HKeyPrefix
Members
Name | Description |
---|---|
Default
|
A default control behavior. |
None
|
The ampersand character (&) is shown, the next character is not underlined. |
Show
|
The ampersand character (&) is hidden, the next character is underlined. |
Hide
|
The ampersand character (&) is hidden, the next character is not underlined. |
Related API Members
The following properties accept/return HKeyPrefix values:
Remarks
The HKeyPrefix enumerator values are accepted by the TextOptions.HotkeyPrefix property. This property allows you to specify how the “&” character in an item caption should be interpreted: as a symbol that makes the following character a hotkey, as a regular character that should be displayed as is, or as a placeholder that should be completely ignored.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HKeyPrefix enum.
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.