# Shape.Location Property

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.Drawing > Shape.Location Property
- **417 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/location-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/location-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/location-property/llms-full.txt

---

### Description

Gets or sets [shape](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/llms-full.txt)'s current location. The values are given in twips with an origin at the upper left corner of the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt). The default values for Location.X and Location.Y correspond to one quarter the smallest control side.

### Syntax

```csharp
public Point Location { get; set; }
```

```vbnet
Public Property Location As Point
```

### 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.

```csharp
shape.Location = new System.Drawing.Point(20, 20);
Console.WriteLine($"Location used by Shape: {shape.Location}");
```

```vbnet
shape.Location = New System.Drawing.Point(20, 20)
Console.WriteLine($"Location used by Shape: {shape.Location}")
```

---

## Nearby

- **Previous:** [Shape.IsSelected Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/isselected-property/llms-full.txt)
- **Next:** [Shape.Movable Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/movable-property/llms-full.txt)
