TX Text Control .NET for Windows Forms

Size Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the frame's size in twips. For images this property is read only.

Syntax

public Size Size { get; set; }

Examples

The following example adds a callout frame and works with it through the common frame API by using FrameBase.Size.

TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

frameBase.Size = new System.Drawing.Size(600, 400);
Console.WriteLine($"Size used by Frame Base: {frameBase.Size}");

Limitations

For images this property is read only.

Further Reading