TX Text Control .NET for WPF

GetMainText Method

Method|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the main text part of the document.

Syntax

public MainText GetMainText();

Return 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}");