Gets or sets the object of type ServerTextControl that is associated with the DocumentController component. Invoking one of the DocumentController's instance methods will result in an exception being thrown, if the TextComponent property is left unset.

Syntax

public Component TextComponent { get; set; }
Public Property TextComponent() As Component

Examples

The following examples create a new DocumentServer.DocumentController object and associates a ServerTextControlwith it.

TXTextControl.DocumentServer.DocumentController documentController1 = new TXTextControl.DocumentServer.DocumentController();
TXTextControl.ServerTextControl serverTextControl1 = new TXTextControl.ServerTextControl();
documentController1.TextComponent = serverTextControl1;
``

```vbnet
Dim DocumentController1 As TXTextControl.DocumentServer.DocumentController = New TXTextControl.DocumentServer.DocumentController()
Dim ServerTextControl1 As TXTextControl.ServerTextControl = New TXTextControl.ServerTextControl()
DocumentController1.TextComponent = ServerTextControl1