TextComponent Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
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 ComponentExamples
The following example creates a new DocumentServer.DocumentController object and associates a ServerTextControl with it:
TXTextControl.DocumentController documentController1 = new TXTextControl.DocumentController();
TXTextControl.ServerTextControl serverTextControl1 = new TXTextControl.ServerTextControl();
documentController1.TextComponent = serverTextControl1;Dim DocumentController1 As TXTextControl.DocumentController = New TXTextControl.DocumentController
Dim ServerTextControl1 As TXTextControl.ServerTextControl = New TXTextControl.ServerTextControl
DocumentController1.TextComponent = ServerTextControl1The following example uses DocumentController.TextComponent to configure text component as part of the document controller workflow. The configured value is checked before the workflow continues.
documentController.TextComponent = new System.ComponentModel.Component();
if (documentController.TextComponent != null)
{
Console.WriteLine("Document Controller: Text Component is available.");
}documentController.TextComponent = New System.ComponentModel.Component()
If documentController.TextComponent IsNot Nothing Then
Console.WriteLine("Document Controller: Text Component is available.")
End If