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

XtraTabControl.UseMnemonic Property

Gets or sets whether mnemonic characters are used to activate tab pages.

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
Boolean true

true if mnemonic characters are used to activate tab pages; otherwise, false.

#Remarks

The XtraTabPage.Text property specifies the caption for the tab page. Tab page captions can contain mnemonic characters. These are underlined characters that allow an end-user to activate a tab page (see XtraTabControl.SelectedTabPage) using the corresponding keyboard shortcut (Alt + mnemonic character). In the figure below, you can see two tab pages which contain mnemonic characters in their captions.

XtraTabControl_UseMnemonic

For a character in the caption to be mnemonic, it should be preceded by an ampersand. See the code snippet below.

xtraTabPage1.Text = "xtraTabPage&1";
xtraTabPage2.Text = "xtraTabPage&2";

If defined in captions, mnemonics are enabled by default. Set the UseMnemonic property to false to disable this feature.

See Also