CaretWidth Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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 change is then applied to the active document or user interface.
textControl.CaretWidth = 100;
textControl.Update();textControl.CaretWidth = 100
textControl.Update()Limitations
The maximum width is 255 pixels.