Caret
Represents a caret for code editor.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.UI
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class Caret : Control
Inheritance: objectCaret
Constructors
Fields
CaretBrushProperty
DependencyProperty
Identifies the CaretBrush dependency property.
public static readonly DependencyProperty CaretBrushProperty
Properties
CaretBrush
Brush
Gets or sets the brush used for the carets.
public Brush CaretBrush { get; set; }
Caret display mode.
public CaretDisplayMode DisplayMode { get; set; }
Gets or sets a value indicating whether [should invert fore color].
public bool ShouldInvertForeColor { get; set; }
true if [should invert fore color]; otherwise, false.
Methods
Hides the caret.
public void Hide()
public override void OnApplyTemplate()
Invoked whenever an unhandled event reaches this element in its route.
protected override void OnGotFocus(RoutedEventArgs e)
The RoutedEventArgs that contains the event data.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Handles the event.
protected virtual void OnTextInserted(object sender, TextInsertedEventArgs e)
The sender.
eTextInsertedEventArgsThe TextInsertedEventArgs instance containing the event data.
Sets the font size of the caret.
Updates the UI.
public void UpdateUI()
Events
Occurs when text is inserted.
public event EventHandler<TextInsertedEventArgs> TextInserted
Occurs when [update executed].
public event EventHandler UpdateExecuted