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

LabelControl.UseMnemonic Property

Gets or sets a value indicating whether the label interprets an ampersand character (&) in its Text property to be an access key prefix character.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool UseMnemonic { get; set; }

Property Value

Type Default Description
Boolean **true**

true if the label doesn’t display the ampersand character and underlines the character after the ampersand in its displayed text and treats the underlined character as an access key; false if the ampersand character is displayed in the label’s text.

Remarks

If the UseMnemonic property is set to true and a mnemonic character (a character preceded by the ampersand) is defined in the label’s Text property, pressing ALT+ the mnemonic character sets the focus to the control that follows the LabelControl in the tab order. You can use this property to provide proper keyboard navigation to the controls on your form.

See Also