TX Text Control .NET for Windows Forms

StatusBar Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. Control
  2. StatusBar

Description

The StatusBar class represents a Windows Forms tool bar which can be used to show the position of the curent text input position and other status information of a Windows Forms TextControl. It is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the StatusBar class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.

Syntax

public class StatusBar : Control

Examples

The following example creates a Status Bar instance and configures its border style setting for a document workflow.

using StatusBar statusBar = new();
statusBar.BorderStyle = StatusBarBorderStyle.Fixed3D;

Members

Constructors

ConstructorDescription
StatusBarNot described in the reference. public StatusBar();

Properties

PropertyDescription
BorderStyleGets or sets the border style of the status bar.
ColumnTextGets or sets the text in the 'Column' area of the status bar.
DisplayColorsGets or sets the colors of the status bar. These colors are only used when the BorderStyle property has been set to ColorScheme. The property value is an object of the type StatusBar.Colors.
LineTextGets or sets the text in the 'Line' area of the status bar.
PageCounterTextGets or sets the text in the 'Page counter' area of the status bar.
PageTextGets or sets the text in the 'Page' area of the status bar.
SectionCounterTextGets or sets the text in the 'Section counter' area of the status bar.
SectionTextGets or sets the text in the 'Section' area of the status bar.
ShowColumnSpecifies whether the status bar shows the column number of the current text input position.
ShowKeyStatesSpecifies whether the status bar shows the key state of the CAPSLOCK and the NUMLOCK key and the current insertion mode, insert or overwrite.
ShowLanguageSpecifies whether the status bar shows the language of the text selection or the text input position.
ShowLineSpecifies whether the status bar shows the line number of the current text input position.
ShowPageSpecifies whether the status bar shows the page number of the current text input position.
ShowPageCounterSpecifies whether the status bar shows the number of pages the document consists of.
ShowSectionSpecifies whether the status bar shows the section number of the current text input position.
ShowSectionCounterSpecifies whether the status bar shows the number of sections the document consists of.
ShowZoomSpecifies whether the status bar shows the current zoom factor.
ShowZoomTrackBarSpecifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.

Methods

MethodDescription
ResetDisplayColorsResets all display colors of a status bar to their system dependent default values.