CaretStateEventArgs Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Event
Args - Caret
State Event Args
- Event
Description
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.
Syntax
public class CaretStateEventArgs : EventArgsPublic Class CaretStateEventArgs
Inherits EventArgsExamples
The following example includes the location value from a Caret State Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Location: {caretStateEventArgs.Location}");
Console.WriteLine("Caret State Event Args is ready for use.");Console.WriteLine($"Location: {caretStateEventArgs.Location}")
Console.WriteLine("Caret State Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Direction | Gets the caret's direction. |
| Location | Gets the caret's location in pixels. |
| Size | Gets the caret's visibility. |
| Visibility | Gets the caret's visibility. |