TX Text Control .NET Server

StatusBar Property

Property|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages
Not in
TXTextControl.TextControl.Core.SDK

Description

Specifies the status bar to be used with the TextViewGenerator. The property value is null, if there is no status bar connected. Otherwise it is an object of the type StatusBarViewGenerator. It automatically shows status information of the current text input position.

Syntax

public StatusBarViewGenerator StatusBar { get; set; }

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.StatusBar.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.StatusBar = new TXTextControl.ServerVisualisation.StatusBarViewGenerator();
if (textViewGenerator.StatusBar != null)
{
    Console.WriteLine("Text View Generator: Status Bar is available.");
}