TX Text Control .NET for WPF

TextControlDocument Class

Class|Introduced in 22.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. Canvas
  2. TextControlDocument

Description

An object of the WPF.TextControlDocument class represents a document and is part of the template of a WPF.TextControl. It is a System.Windows.Controls.Canvas element and its size is exactly the size of the document. The document is contained in a System.Windows.Controls.ScrollViewer which is responsible for displaying the document's visible part.

Syntax

public class TextControlDocument : Canvas

Examples

To obtain the TextControlDocument object in a WPF.TextControl the following code can be used:

TextControlDocument document = textControl1.Template.FindName("TXPART_Document", textControl1) as TextControlDocument;

The following example creates a Text Control Document instance and configures its is items host setting for a document workflow.

TXTextControl.WPF.TextControlDocument textControlDocument = new();
textControlDocument.IsItemsHost = true;

Members

Constructors

ConstructorDescription
TextControlDocumentNot described in the reference. public TextControlDocument();