Class Caret
Represents a caret for code editor.
Inheritance
Namespace: Telerik.Windows.Controls.SyntaxEditor.UI
Assembly: Telerik.Windows.Controls.SyntaxEditor.dll
Syntax
public class Caret : Control, IThemable
Constructors
Caret()
Fields
CaretBrushProperty
Identifies the CaretBrush dependency property.
Declaration
public static readonly DependencyProperty CaretBrushProperty
Field Value
System.Windows.DependencyProperty
|
Properties
CaretBrush
Gets or sets the brush used for the carets.
Declaration
public Brush CaretBrush { get; set; }
Property Value
System.Windows.Media.Brush
|
DisplayMode
Caret display mode.
Declaration
public CaretDisplayMode DisplayMode { get; set; }
Property Value
CaretDisplayMode
|
ShouldInvertForeColor
Gets or sets a value indicating whether [should invert fore color].
Declaration
public bool ShouldInvertForeColor { get; set; }
Property Value
System.Boolean
|
Methods
Focus()
Tries to focus the caret.
Declaration
public bool Focus()
Returns
System.Boolean
|
Hide()
Hides the caret.
Declaration
public void Hide()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnTextInserted(Object, TextInsertedEventArgs)
Handles the TextInserted event.
Declaration
protected virtual void OnTextInserted(object sender, TextInsertedEventArgs e)
Parameters
System.Object
sender
The sender. |
TextInsertedEventArgs
e
The TextInsertedEventArgs instance containing the event data. |
SetFontSize(Double)
Sets the font size of the caret.
Declaration
public void SetFontSize(double fontSize)
Parameters
System.Double
fontSize
|
Show()
Shows the caret.
Declaration
public bool Show()
Returns
System.Boolean
|
UpdateUI()
Updates the UI.
Declaration
public void UpdateUI()
Events
TextInserted
Occurs when text is inserted.
Declaration
public event EventHandler<TextInsertedEventArgs> TextInserted
Event Type
System.EventHandler<TextInsertedEventArgs>
|
UpdateExecuted
Occurs when [update executed].
Declaration
public event EventHandler UpdateExecuted
Event Type
System.EventHandler
|