SizeToContent Method
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
If any changes of the the displayed shapes' visible bounds require an adaption of the TX Drawing Control bounds, the size and/or location of the control is expanded respectively decreased by the considering value of the considering shape's side(s). The method returns an array of doubles which represent the effected alteration for each control's side (left, top, right, bottom) in Twips.
Syntax
public int[] SizeToContent();Public Function SizeToContent() As Integer()Return Value
An array of integers which represent the effected extension for each control's side (left, top, right, bottom) in Twips.
Examples
The following example uses Size To Content in a focused TXDrawing Control workflow.
int[] results = tXDrawingControl.SizeToContent();
foreach (int int32 in results)
{
Console.WriteLine(int32);
}Dim results As Integer() = tXDrawingControl.SizeToContent()
For Each int32 As Integer In results
Console.WriteLine(int32)
Next