ClassCaret
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
Identifies the CaretBrush dependency property.
Declaration
public static readonly DependencyProperty CaretBrushProperty
Field Value
DependencyProperty
Properties
CaretBrush
Gets or sets the brush used for the carets.
Declaration
public Brush CaretBrush { get; set; }
Property Value
Brush
DisplayMode
Caret display mode.
Declaration
public CaretDisplayMode DisplayMode { get; set; }
Property Value
ShouldInvertForeColor
Gets or sets a value indicating whether [should invert fore color].
Declaration
public bool ShouldInvertForeColor { get; set; }
Property Value
true if [should invert fore color]; otherwise, false.
Methods
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled event reaches this element in its route.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
The RoutedEventArgs that contains the event data.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnTextInserted(object, TextInsertedEventArgs)
Handles the event.
Declaration
protected virtual void OnTextInserted(object sender, TextInsertedEventArgs e)
Parameters
sender
The sender.
e
The TextInsertedEventArgs instance containing the event data.
SetFontSize(double)
Sets the font size of the caret.
Events
TextInserted
Occurs when text is inserted.
Declaration
public event EventHandler<TextInsertedEventArgs> TextInserted
Event Value
UpdateExecuted
Occurs when [update executed].