TextFrame Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Initializes a new instance of the TextFrame class.
Syntax
public TextFrame(Size size);Public Sub New(size As Size)Parameters
| Parameter | Description |
|---|---|
| size | Specifies the text frame's size in twips. |
Examples
The following example adds a text frame for a document callout.
TextFrame textFrame = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout", ID = 10 };
textControl.TextFrames.Add(textFrame, TextFrameInsertionMode.DisplaceText);Dim textFrame As New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout", .ID = 10 }
textControl.TextFrames.Add(textFrame, TextFrameInsertionMode.DisplaceText)