GetMainText Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the main text part of the document.
Syntax
public MainText GetMainText();Public Function GetMainText() As MainTextReturn Value
The return value is the main text part of the document. It is an object of the type MainText.
Examples
The following example works with text parts in the current document by using TextPartCollection.GetMainText.
TextPartCollection textPartCollection = textControl.TextParts;
var result = textPartCollection.GetMainText();
Console.WriteLine($"Get Main Text result: {result}");Dim textPartCollection As TextPartCollection = textControl.TextParts
Dim result = textPartCollection.GetMainText()
Console.WriteLine($"Get Main Text result: {result}")