Class Caret
Inheritance
Inherited Members
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class Caret : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Constructors
Caret()
Declaration
public Caret()
Properties
CaretBaseLineOffset
Gets the caret baseline offset.
Declaration
public float CaretBaseLineOffset { get; set; }
Property Value
System.Single
|
Color
Gets or sets the color of the caret.
Declaration
public Color Color { get; set; }
Property Value
Color
|
Focusable
Gets or sets a value indicating whether the caret can be focused.
Declaration
public bool Focusable { get; set; }
Property Value
System.Boolean
|
Height
Gets or sets the height of the caret.
Declaration
public float Height { get; set; }
Property Value
System.Single
|
InputState
Gets or sets the InputStates.
Declaration
public InputStates InputState { get; set; }
Property Value
InputStates
|
IsBlinking
Gets or sets whether the caret is blinking.
Declaration
public bool IsBlinking { get; set; }
Property Value
System.Boolean
|
Position
Gets or sets the location of the caret.
Declaration
public PointF Position { get; set; }
Property Value
System.Drawing.PointF
|
Width
Gets or sets the width of the caret.
Declaration
public float Width { get; set; }
Property Value
System.Single
|
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Finalize()
Declaration
protected void Finalize()
Hide()
Hides the caret.
Declaration
public void Hide()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnImeCaretMoved(ImeCaretMovedEventArgs)
Declaration
protected virtual void OnImeCaretMoved(ImeCaretMovedEventArgs args)
Parameters
ImeCaretMovedEventArgs
args
|
OnTextInserted(Object, TextInsertedEventArgs)
Declaration
protected virtual void OnTextInserted(object sender, TextInsertedEventArgs e)
Parameters
System.Object
sender
|
TextInsertedEventArgs
e
|
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
ResumeBlinking()
Resumes caret blinking
Declaration
public void ResumeBlinking()
SetStyle(Double, Boolean, Color)
Updates the size of the caret according the provided font characteristics.
Declaration
public void SetStyle(double fontSize, bool isItalic, Color caretColor)
Parameters
System.Double
fontSize
The size of the font. |
System.Boolean
isItalic
true if the font is italic, otherwise false |
Color
caretColor
A color for the caret. |
Show()
Shows the caret.
Declaration
public void Show()
SuspendBlinking()
Stops the caret from blinking.
Declaration
public void SuspendBlinking()
Events
ImeCaretMoved
Declaration
public event EventHandler<ImeCaretMovedEventArgs> ImeCaretMoved
Event Type
System.EventHandler<ImeCaretMovedEventArgs>
|
TextInserted
Declaration
public event EventHandler<TextInsertedEventArgs> TextInserted
Event Type
System.EventHandler<TextInsertedEventArgs>
|