# TextViewGenerator.StatusBar Property

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Not in:** `TXTextControl.TextControl.Core.SDK`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.StatusBar Property
- **593 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/statusbar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/statusbar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/statusbar-property/llms-full.txt

---

### 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](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/llms-full.txt). It automatically shows status information of the current text input position.

### Syntax

```csharp
public StatusBarViewGenerator StatusBar { get; set; }
```

```vbnet
Public Property StatusBar As StatusBarViewGenerator
```

### Examples

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

```csharp
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.");
}
```

```vbnet
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
```

---

## Nearby

- **Previous:** [TextViewGenerator.SignatureFieldSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/signaturefieldselected-event/llms-full.txt)
- **Next:** [TextViewGenerator.SubTextPartClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/subtextpartclicked-event/llms-full.txt)
