# DialogViewGenerator Class

> An instance of the DialogViewGenerator class can be used to visualize a built-in dialog box through an image. It manages a ServerVisualization.UserInput and a ServerVisualization.View object. These objects can be used to inform the generator about user input and to get a generated view depending on the input.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **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
- **Inherits:** `System.ComponentModel.Component`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > DialogViewGenerator Class
- **1000 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/llms-full.txt

---

### Description

An instance of the DialogViewGenerator class can be used to visualize a built-in dialog box through an image. It manages a [ServerVisualization.UserInput](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/llms-full.txt) and a [ServerVisualization.View](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/llms-full.txt) object. These objects can be used to inform the generator about user input and to get a generated view depending on the input.

### Syntax

```csharp
public class DialogViewGenerator : Component
```

```vbnet
Public Class DialogViewGenerator
    Inherits Component
```

### Examples

The following example includes the activation state value from a Dialog View Generator object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Activation State: {dialogViewGenerator.ActivationState}");
Console.WriteLine("Dialog View Generator is ready for use.");
```

```vbnet
Console.WriteLine($"Activation State: {dialogViewGenerator.ActivationState}")
Console.WriteLine("Dialog View Generator is ready for use.")
```

---

## In This Section

- [DialogViewGenerator.ActivationState Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/activationstate-property/llms-full.txt): Gets or sets a value indicating the dialog box's activation state. It can be activated, deactivated or disabled.
- [DialogViewGenerator.Caption Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/caption-property/llms-full.txt): Gets the dialog box's caption.
- [DialogViewGenerator.CaretStateChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/caretstatechanged-event/llms-full.txt): Occurs when the state of the caret (size, position, visibility) has been changed. The event handler receives an argument of type ServerVisualization.CaretStateEventArgs containing data related to this event.
- [DialogViewGenerator.Closed Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/closed-event/llms-full.txt): Occurs after the dialog box has been closed through clicking the Ok or Cancel button. The event handler receives an argument of type EventArgs containing data related to this event.
- [DialogViewGenerator.ShowDialogBox Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/showdialogbox-event/llms-full.txt): Occurs when the dialog box should show a further dialog box. The event handler receives an argument of type ServerVisualization.ShowDialogBoxEventArgs containing data related to this event.
- [DialogViewGenerator.ShowErrorMessage Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/showerrormessage-event/llms-full.txt): Occurs when the dialog box should show an error message. The event handler receives an argument of type ServerVisualization.ShowErrorMessageEventArgs containing data related to this event.
- [DialogViewGenerator.UserInput Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/userinput-property/llms-full.txt): Gets the dialog box's UserInput object, which can be used to inform the dialog box about user input. The generator uses this information to generate a new view.
- [DialogViewGenerator.View Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/view-property/llms-full.txt): Gets the dialog box's View object, which informs about view changes and provides an image of the dialog box's current state.

---

## Nearby

- **Previous:** [CaretStateEventArgs.Visibility Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/visibility-property/llms-full.txt)
- **Next:** [DialogViewGenerator.ActivationState Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/activationstate-property/llms-full.txt)
