Back to Devexpress

LabelControl.UseMnemonic Property

windowsforms-devexpress-dot-xtraeditors-dot-labelcontrol-01d01e37.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool UseMnemonic { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property UseMnemonic As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

LabelControl Class

LabelControl Members

DevExpress.XtraEditors Namespace