# CaretStateEventArgs Class

> The CaretStateEventArgs class provides data about the state of the caret, such as position, size and visibility. It is used with the CaretStateChanged event of the ServerVisualization.TextViewGenerator and the ServerVisualization.DialogViewGenerator class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > CaretStateEventArgs Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/#members)

---

## In This Section

- [CaretStateEventArgs.Direction Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/direction-property/llms.txt): Gets the caret's direction.
- [CaretStateEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/location-property/llms.txt): Gets the caret's location in pixels.
- [CaretStateEventArgs.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/size-property/llms.txt): Gets the caret's visibility.
- [CaretStateEventArgs.Visibility Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/caretstateeventargs/visibility-property/llms.txt): Gets the caret's visibility.

---

## Nearby

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