TX Text Control .NET Server

Size Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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