# CaretStateEventArgs.Location Property

> Gets the caret's location in pixels.

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

---

### Description

Gets the caret's location in pixels.

### Syntax

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

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

### Examples

The following example includes the location value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Location: {caretStateEventArgs.Location}");
Console.WriteLine("Caret State Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Location: {caretStateEventArgs.Location}")
Console.WriteLine("Caret State Event Args is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [CaretStateEventArgs.Direction Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/direction-property/llms-full.txt)
- **Next:** [CaretStateEventArgs.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/size-property/llms-full.txt)
