ClassCaret
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class Caret : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementCaret
Implements:
Inherited Members
Constructors
Properties
CaretWidth
Gets or sets the width of the caret when the DisplayMode is set to Normal.
Color
Gets or sets the color used for the carets.
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()
Overrides
OnGotFocus(EventArgs)
Invoked whenever an unhandled GotFocus event reaches this element in its route.
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.
PaintCore(IPaintingContext)
Declaration
protected override void PaintCore(IPaintingContext context)
Parameters
context
Overrides
PaintElement(IGraphics, float, SizeF)
Paints the element's background and calls the base implementation to paint child elements.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics object used for painting.
angle
The rotation angle to apply during painting.
scale
The scale factor to apply during painting.
Overrides
RestartBlinking()
Declaration
public void RestartBlinking()
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].