Size Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the frame's size in twips. For images this property is read only.
Syntax
public Size Size { get; set; }Public Property Size As SizeExamples
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}");Dim callout As New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout" }
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText)
Dim frameBase As 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.