TX Text Control .NET for WPF

ShowKeyStates Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies whether the status bar shows the key state of the CAPSLOCK and the NUMLOCK key and the current insertion mode, insert or overwrite.

Syntax

public bool ShowKeyStates { get; set; }

Examples

The following example uses StatusBar.ShowKeyStates to configure show key states as part of the status bar workflow. The configured value is checked before the workflow continues.

statusBar.ShowKeyStates = true;
if (statusBar.ShowKeyStates)
{
    Console.WriteLine("Status Bar: Show Key States is enabled.");
}