TX Text Control .NET for Windows Forms

CaretWidth Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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();

Limitations

The maximum width is 255 pixels.