Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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