Location Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets shape's current location. The values are given in twips with an origin at the upper left corner of the TX Drawing Control. The default values for Location.X and Location.Y correspond to one quarter the smallest control side.
Syntax
public Point Location { get; set; }Public Property Location As PointExamples
The following example uses Shape.Location to configure location as part of the shape workflow. The configured value is checked before the workflow continues.
shape.Location = new System.Drawing.Point(20, 20);
Console.WriteLine($"Location used by Shape: {shape.Location}");shape.Location = New System.Drawing.Point(20, 20)
Console.WriteLine($"Location used by Shape: {shape.Location}")