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
Senderwhich 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<bool> provides
NewValueandOldValueproperties of type bool, indicating the IsReadOnly property change.
- The
-
FontFamilyChanged: Raised when the
FontFamilyproperty of the RichTextEditor is modified. The FontFamilyChanged event handler receives two parameters:- The
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<string> provides
NewValueandOldValueproperties of type string, indicating the FontFamily property change.
- The
-
FontSizeChanged: Raised when the
FontSizeproperty of the RichTextEditor is modified. The FontSizeChanged event handler receives two parameters:- The
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextUnit> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextFontAttributes> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextDecorations> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextFormatting> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextHorizontalAlignment> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextListType> provides
NewValueandOldValueproperties of type RichTextListType, indicating the ListType property change.
- The
-
TextColorChanged: Raised when the
TextColorproperty of the RichTextEditor is updated. The TextColorChanged event handler receives two parameters:- The
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<Color> provides
NewValueandOldValueproperties of type Color, indicating the TextColor property change.
- The
-
HighlightTextColorChanged: Raised when the
HighlightTextColorproperty of the RichTextEditor is updated. The HighlightTextColorChanged event handler receives two parameters:- The
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<Color> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<RichTextSelectionRange> provides
NewValueandOldValueproperties 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
Senderwhich is the RichTextEditor control; - RadValueChangedEventArgs<bool> provides
NewValueandOldValueproperties of type bool, indicating the IsHyperlinkSelected property change.
- The