CaretWidth Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the width of the caret in pixels. If this property is zero, the width is set to its default value which is the system-defined window border width.
Syntax
public int CaretWidth { get; set; }Public Property CaretWidth As IntegerExamples
The following example uses TextControl.CaretWidth to configure caret width as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.CaretWidth = 100;
Console.WriteLine($"Caret Width used by Text Control: {textControl.CaretWidth}");textControl.CaretWidth = 100
Console.WriteLine($"Caret Width used by Text Control: {textControl.CaretWidth}")Limitations
The maximum width is 255 pixels.