TX Text Control .NET for WPF

TextFrame Constructor

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

Description

Initializes a new instance of the TextFrame class.

Syntax

public TextFrame(Size size);

Parameters

ParameterDescription
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);