CaretSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the size of the caret, in pixels, at the current text input position.
Syntax
public Size CaretSize { get; }Public ReadOnly Property CaretSize As SizeExamples
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.");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.