ClassCaret
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class Caret : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementCaret
Implements:
Inherited Members
Constructors
Caret()
Declaration
public Caret()
Properties
CaretBaseLineOffset
Gets the caret baseline offset.
Color
Gets or sets the color of the caret.
Focusable
Gets or sets a value indicating whether the caret can be focused.
Height
Gets or sets the height of the caret.
InputState
Gets or sets the InputStates.
Declaration
public InputStates InputState { get; set; }
Property Value
IsBlinking
Gets or sets whether the caret is blinking.
Position
Gets or sets the location of the caret.
Methods
Dispose()
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnImeCaretMoved(ImeCaretMovedEventArgs)
Declaration
protected virtual void OnImeCaretMoved(ImeCaretMovedEventArgs args)
Parameters
args
OnTextInserted(object, TextInsertedEventArgs)
Declaration
protected virtual void OnTextInserted(object sender, TextInsertedEventArgs e)
Parameters
sender
e
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
SetStyle(double, bool, Color)
Updates the size of the caret according the provided font characteristics.
SuspendBlinking()
Stops the caret from blinking.
Declaration
public void SuspendBlinking()
~Caret()
Declaration
protected ~Caret()
Events
ImeCaretMoved
Declaration
public event EventHandler<ImeCaretMovedEventArgs> ImeCaretMoved
Event Value
TextInserted
Declaration
public event EventHandler<TextInsertedEventArgs> TextInserted
Event Value