# InputPosition.CaretSize Property

> Gets the size of the caret, in pixels, at the current text input position.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 20.0
- **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 > InputPosition.CaretSize Property
- **383 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/caretsize-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/caretsize-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/caretsize-property/llms-full.txt

---

### Description

Gets the size of the caret, in pixels, at the current text input position.

### Syntax

```csharp
public Size CaretSize { get; }
```

```vbnet
Public ReadOnly Property CaretSize As Size
```

### Examples

The following example examines or changes the insertion point in a short document by using `InputPosition.CaretSize`.

```csharp
textControl.Text = "Project summary";
InputPosition inputPosition = textControl.InputPosition;

Console.WriteLine($"Caret Size: {inputPosition.CaretSize}");
Console.WriteLine("Input Position is ready for use.");
```

```vbnet
textControl.Text = "Project summary"
Dim inputPosition As InputPosition = textControl.InputPosition

Console.WriteLine($"Caret Size: {inputPosition.CaretSize}")
Console.WriteLine("Input Position is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [InputPosition Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/llms-full.txt)
- **Next:** [InputPosition.Column Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/column-property/llms-full.txt)
