TextControlDocument Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- Canvas
- Text
Control Document
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 : CanvasPublic Class TextControlDocument
Inherits CanvasExamples
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;Dim document As TextControlDocument = TryCast(textControl1.Template.FindName("TXPART_Document", textControl1), 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;Dim textControlDocument As New TXTextControl.WPF.TextControlDocument()
textControlDocument.IsItemsHost = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| TextControlDocument | Not described in the reference. public TextControlDocument(); |