# FrameBase.Location Property

> Gets or sets, in twips, the frame's current location. If the image, text frame, chart, barcode or drawing is anchored to a paragraph, the location is relative to the paragraph. Otherwise, it is relative to the document. If the frame has a horizontal alignment or if it is inserted inline, this property returns zero. This property cannot be set for images, text frames, charts, barcodes or drawings which are inserted inline.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > FrameBase.Location Property
- **635 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/location-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/location-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/location-property/llms-full.txt

---

### Description

Gets or sets, in twips, the frame's current location. If the image, text frame, chart, barcode or drawing is anchored to a paragraph, the location is relative to the paragraph. Otherwise, it is relative to the document. If the frame has a horizontal alignment or if it is inserted inline, this property returns zero. This property cannot be set for images, text frames, charts, barcodes or drawings which are inserted inline.

### Syntax

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

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

### Examples

The following example adds a callout frame and works with it through the common frame API by using `FrameBase.Location`.

```csharp
TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

frameBase.Location = new System.Drawing.Point(20, 20);
Console.WriteLine($"Location used by Frame Base: {frameBase.Location}");
```

```vbnet
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.Location = New System.Drawing.Point(20, 20)
Console.WriteLine($"Location used by Frame Base: {frameBase.Location}")
```

---

## Nearby

- **Previous:** [FrameBase.InsertionMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/insertionmode-property/llms-full.txt)
- **Next:** [FrameBase.Moveable Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/moveable-property/llms-full.txt)
