TX Text Control .NET for WPF

Location Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");