Events
RadRichTextEditor component exposes the following events:
-
OpenHyperlinkError: Raised when users try to open invalid urls in the editor. The OpenHyperlinkError event handler receives two parameters:
- The
Sender
which is the RichTextEditor control; - OpenHyperlinkErrorEventArgs provides the following properties:
-
Error
- of type System.Exception, can be used to get the exact error message; -
Url
- of type string, defining the url of the hyperlink; -
Handled
- boolean property indicating whether the event is handled.
-
- The
-
IsReadOnlyChanged: Raised when read-only mode of the RichTextEditor is switched. The IsReadOnlyChanged event receives two parameters:
- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<bool> provides
NewValue
andOldValue
properties of type bool, indicating the IsReadOnly property change.
- The
-
FontFamilyChanged: Raised when the
FontFamily
property of the RichTextEditor is modified. The FontFamilyChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<string> provides
NewValue
andOldValue
properties of type string, indicating the FontFamily property change.
- The
-
FontSizeChanged: Raised when the
FontSize
property of the RichTextEditor is modified. The FontSizeChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextUnit> provides
NewValue
andOldValue
properties of type RichTextUnit, indicating the FontFamily property change.
- The
-
FontAttributesChanged: Raised when the
FontAttributes
, such as bold, italic, subscript and superscript is modified. The FontAttributesChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextFontAttributes> provides
NewValue
andOldValue
properties of type RichTextFontAttributes, indicating the FontAttributes property change.
- The
-
TextDecorationsChanged: Raised when the
TextDecorations
, such as underline and strikethrough is modified. The TextDecorationsChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextDecorations> provides
NewValue
andOldValue
properties of type RichTextDecorations, indicating the TextDecorations property change.
- The
-
TextFormattingChanged: Raised when the
TextFormatting
, such as such as heading, paragraph or quotation is modified. The TextFormattingChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextFormatting> provides
NewValue
andOldValue
properties of type RichTextFormatting, indicating the TextFormatting property change.
- The
-
HorizontalTextAlignmentChanged: Raised when the
HorizontalTextAlignment
, such as left, right, center or justify is modified. The HorizontalTextAlignmentChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextHorizontalAlignment> provides
NewValue
andOldValue
properties of type RichTextHorizontalAlignment, indicating the HorizontalTextAlignment property change.
- The
-
ListTypeChanged: Raised when the
ListType
, such as numbered or bulleted list is modified. The ListTypeChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextListType> provides
NewValue
andOldValue
properties of type RichTextListType, indicating the ListType property change.
- The
-
TextColorChanged: Raised when the
TextColor
property of the RichTextEditor is updated. The TextColorChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<Color> provides
NewValue
andOldValue
properties of type Color, indicating the TextColor property change.
- The
-
HighlightTextColorChanged: Raised when the
HighlightTextColor
property of the RichTextEditor is updated. The HighlightTextColorChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<Color> provides
NewValue
andOldValue
properties of type Color, indicating the HighlightTextColor property change.
- The
-
SelectionRangeChanged: Raised when the
SelectionRange
, which defines the start and end position of the currently selected inside the editor text, is updated. The SelectionRangeChanged event handler receives two parameters:- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<RichTextSelectionRange> provides
NewValue
andOldValue
properties of type RichTextSelectionRange, indicating the SelectionRange property change.
- The
-
IsHyperlinkSelectedChanged: Raised when a hyperlink inside the editor is selected. The IsHyperlinkSelectedChanged event handler receives two parameters:
- The
Sender
which is the RichTextEditor control; - RadValueChangedEventArgs<bool> provides
NewValue
andOldValue
properties of type bool, indicating the IsHyperlinkSelected property change.
- The