Class Caret
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public class Caret : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Constructors
Caret()
Properties
CaretWidth
Gets or sets the width of the caret when the DisplayMode is set to Normal.
Declaration
public double CaretWidth { get; set; }
Property Value
System.Double
|
Color
Gets or sets the color used for the carets.
Declaration
public Color Color { get; set; }
Property Value
System.Drawing.Color
|
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()
OnGotFocus(EventArgs)
Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs that contains the event data. |
Overrides
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. |
PaintCore(IPaintingContext)
Declaration
protected override void PaintCore(IPaintingContext context)
Parameters
IPaintingContext
context
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
RestartBlinking()
Declaration
public void RestartBlinking()
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
|