StatusBar Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. ASP. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
- 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; }Public Property StatusBar As StatusBarViewGeneratorExamples
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.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.StatusBar = New TXTextControl.ServerVisualisation.StatusBarViewGenerator()
If textViewGenerator.StatusBar IsNot Nothing Then
Console.WriteLine("Text View Generator: Status Bar is available.")
End If