Class Caret
A caret is a blinking cursor showing the position where the typed text will appear. Text controls usually have their own caret but Caret provides a way to use a caret in other controls.
public class Caret : HandledObject<ICaretHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
- Inheritance
-
Caret
- Implements
Remarks
A caret is always associated with a control and the current caret can be retrieved using Control methods. The same caret can't be reused in two different controls.
Constructors
- Caret(Control, int, int)
Initializes a new instance of the Caret class with the given size (in pixels) and associates it with the control.
Properties
- BlinkTime
Gets or sets blink time of the carets.
- CaretOffMSec
Time, in milliseconds, for how long a blinking caret should stay invisible during a single blink cycle before it reappears.
- CaretOnMSec
Time, in milliseconds, for how long a blinking caret should stay visible during a single blink cycle before it disappears.
- CaretTimeoutMSec
Time, in milliseconds, for how long a caret should blink after a user interaction.
- IsOk
Returns true if the caret was created successfully.
- Position
Gets or sets the caret position (in pixels).
- Size
Gets or sets the caret size.
Methods
- CreateHandler()
Creates handler.
- Hide()
Hides the caret, same as Show(false).
- Show(bool)
Shows or hides the caret.