TX Text Control .NET for WPF

CaretSize Property

Property|Introduced in 20.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public Size CaretSize { get; }

Examples

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

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

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

Limitations

Read only.