New to Telerik UI for .NET MAUIStart a free 30-day trial

A comprehensive rich text editor control for .NET MAUI applications that provides WYSIWYG (What You See Is What You Get) editing capabilities for HTML content. The RadRichTextEditor offers an intuitive interface for creating, editing, and formatting rich text documents with extensive formatting options and multimedia support.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadRichTextEditor : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadRichTextEditor

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()

Constructors

Initializes a new instance of the RadRichTextEditor class.

C#
public RadRichTextEditor()

Fields

Identifies the AutoGenerateContextMenu property.

C#
public static readonly BindableProperty AutoGenerateContextMenuProperty

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

BorderColorProperty

BindableProperty

Identifies the BorderColor property.

C#
public static readonly BindableProperty BorderColorProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

Identifies the BusyIndicatorContent property.

C#
public static readonly BindableProperty BusyIndicatorContentProperty

Identifies the BusyIndicatorTemplate property.

C#
public static readonly BindableProperty BusyIndicatorTemplateProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

FontAttributesProperty

BindableProperty

Identifies the FontAttributes property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HighlightTextColor property.

C#
public static readonly BindableProperty HighlightTextColorProperty

Identifies the HorizontalTextAlignment property.

C#
public static readonly BindableProperty HorizontalTextAlignmentProperty

IsBusyProperty

BindableProperty

Identifies the IsBusy property.

C#
public static readonly BindableProperty IsBusyProperty

IsDocumentLoadedProperty

BindableProperty

Identifies the IsDocumentLoaded property.

C#
public static readonly BindableProperty IsDocumentLoadedProperty

Identifies the IsHyperlinkSelected property.

C#
public static readonly BindableProperty IsHyperlinkSelectedProperty

IsImageSelectedProperty

BindableProperty

Identifies the IsImageSelected property.

C#
public static readonly BindableProperty IsImageSelectedProperty

IsReadOnlyProperty

BindableProperty

Identifies the IsReadOnly property.

C#
public static readonly BindableProperty IsReadOnlyProperty

ListTypeProperty

BindableProperty

Identifies the ListType property.

C#
public static readonly BindableProperty ListTypeProperty

SelectionRangeProperty

BindableProperty

Identifies the SelectionRange property.

C#
public static readonly BindableProperty SelectionRangeProperty

SourceProperty

BindableProperty

Identifies the Source property.

C#
public static readonly BindableProperty SourceProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TextDecorationsProperty

BindableProperty

Identifies the TextDecorations property.

C#
public static readonly BindableProperty TextDecorationsProperty

TextFormattingProperty

BindableProperty

Identifies the TextFormatting property.

C#
public static readonly BindableProperty TextFormattingProperty

Properties

Gets a command to apply center text alignment in the RadRichTextEditor.

C#
public ICommand AlignCenterCommand { get; }

Gets a command to apply justify text alignment in the RadRichTextEditor.

C#
public ICommand AlignJustifyCommand { get; }

Gets a command to apply left text alignment in the RadRichTextEditor.

C#
public ICommand AlignLeftCommand { get; }

Gets a command to apply right text alignment in the RadRichTextEditor.

C#
public ICommand AlignRightCommand { get; }

Gets a command to apply a hyperlink in the RadRichTextEditor. The command takes a single paramerer of type RichTextHyperlink.

C#
public ICommand ApplyHyperlinkCommand { get; }

Gets or sets a value indicating whether to auto-generate the RichTextEditorContextMenuItemBase items for the context menu for this RadRichTextEditor.

C#
public bool AutoGenerateContextMenu { get; set; }

Gets or sets the background color of the RadRichTextEditor.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border color of the RadRichTextEditor.

C#
public Color BorderColor { get; set; }

Gets or sets the border thickness of the RadRichTextEditor.

C#
public Thickness BorderThickness { get; set; }

Gets the content to show when the RadRichTextEditor is performing a long-running operation.

C#
public View BusyIndicatorContent { get; }

Gets or sets a DataTemplate to be used when displaying a busy indicator during long-running operations, e.g. when loading HTML content. When no template is specified, a default busy indicator is shown.

C#
public DataTemplate BusyIndicatorTemplate { get; set; }

Gets a command to clear the formatting of the text in the RadRichTextEditor.

C#
public ICommand ClearFormattingCommand { get; }

Gets the collection of RichTextEditorContextMenuItemBases used to generate the items of the RadRichTextEditor context menu.

C#
public IList<RichTextEditorContextMenuItemBase> ContextMenuItems { get; }

Gets a command to copy the selected HTML in the RadRichTextEditor to the clipboard.

C#
public ICommand CopyCommand { get; }

CornerRadius

Thickness

Gets or sets the corner radius of the RadRichTextEditor.

C#
public Thickness CornerRadius { get; set; }

Gets a command to cut the selected HTML in the RadRichTextEditor to the clipboard.

C#
public ICommand CutCommand { get; }

Gets or sets the RichTextFontAttributes of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextFontAttributes FontAttributes { get; set; }

Gets or sets the font family of the text in the RadRichTextEditor at the current position or selection.

C#
public string FontFamily { get; set; }

Gets or sets the font size of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextUnit FontSize { get; set; }

Gets or sets the highlight Color of the text in the RadRichTextEditor at the current position or selection.

C#
public Color HighlightTextColor { get; set; }

Gets or sets the RichTextHorizontalAlignment of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextHorizontalAlignment HorizontalTextAlignment { get; set; }

Gets a command to indent the text in the RadRichTextEditor.

C#
public ICommand IndentCommand { get; }

Gets a command to insert an image in the RadRichTextEditor. The command takes a single paramerer of type RichTextImage.

C#
public ICommand InsertImageCommand { get; }

Gets a value indicating whether the RadRichTextEditor is performing a long-running operation.

C#
public bool IsBusy { get; }

Gets a value indicating whether a document is currently loaded in the RadRichTextEditor.

C#
public bool IsDocumentLoaded { get; }

Gets a value indicating whether a hyperlink is currently selected in the RadRichTextEditor.

C#
public bool IsHyperlinkSelected { get; }

Gets a value indicating whether an image is currently selected in the RadRichTextEditor.

C#
public bool IsImageSelected { get; }

Gets or sets a value indicating whether the RadRichTextEditor is in a read-only mode.

C#
public bool IsReadOnly { get; set; }

Gets or sets the RichTextListType of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextListType ListType { get; set; }

Gets a command to open a hyperlink in the RadRichTextEditor.

C#
public ICommand OpenHyperlinkCommand { get; }

Gets a command to outdent the text in the RadRichTextEditor.

C#
public ICommand OutdentCommand { get; }

Gets a command to paste from the clipboard to the RadRichTextEditor. The command takes a single paramerer of type RichTextPasteType.

C#
public ICommand PasteCommand { get; }

Gets a command to redo the last changes in the RadRichTextEditor.

C#
public ICommand RedoCommand { get; }

Gets a command to remove a hyperlink in the RadRichTextEditor.

C#
public ICommand RemoveHyperlinkCommand { get; }

Gets a command to remove an image in the RadRichTextEditor.

C#
public ICommand RemoveImageCommand { get; }

Gets a command to select all in the RadRichTextEditor.

C#
public ICommand SelectAllCommand { get; }

Gets or sets the selection range of the text in the RadRichTextEditor.

C#
public RichTextSelectionRange SelectionRange { get; set; }

Gets or sets a RichTextSource providing a rich text to the RadRichTextEditor.

C#
public RichTextSource Source { get; set; }

Gets or sets the Color of the text in the RadRichTextEditor at the current position or selection.

C#
public Color TextColor { get; set; }

Gets or sets the RichTextDecorations of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextDecorations TextDecorations { get; set; }

Gets or sets the RichTextFormatting of the text in the RadRichTextEditor at the current position or selection.

C#
public RichTextFormatting TextFormatting { get; set; }

Gets a command to toggle the bold text style in the RadRichTextEditor.

C#
public ICommand ToggleBoldCommand { get; }

Gets a command to toggle the bullets paragraph style in the RadRichTextEditor.

C#
public ICommand ToggleBulletingCommand { get; }

Gets a command to toggle the italic text style in the RadRichTextEditor.

C#
public ICommand ToggleItalicCommand { get; }

Gets a command to toggle the numbering paragraph style in the RadRichTextEditor.

C#
public ICommand ToggleNumberingCommand { get; }

Gets a command to toggle the strike-through text style in the RadRichTextEditor.

C#
public ICommand ToggleStrikethroughCommand { get; }

Gets a command to toggle the subscript text style in the RadRichTextEditor.

C#
public ICommand ToggleSubscriptCommand { get; }

Gets a command to toggle the superscript text style in the RadRichTextEditor.

C#
public ICommand ToggleSuperscriptCommand { get; }

Gets a command to toggle the underline text style in the RadRichTextEditor.

C#
public ICommand ToggleUnderlineCommand { get; }

Gets a command to undo the last changes in the RadRichTextEditor.

C#
public ICommand UndoCommand { get; }

Methods

Gets asynchronously the currently edited content of the RadRichTextEditor as HTML.

C#
public Task<string> GetHtmlAsync()
Returns:

Task<string>

Task<TResult> with the currently edited content as HTML.

Gets asynchronously the hyperlink under the caret in the RadRichTextEditor.

C#
public Task<RichTextHyperlink> GetHyperlinkAsync()
Returns:

Task<RichTextHyperlink>

An instance of the RichTextHyperlink class or null, if there is no hyperlink.

Gets asynchronously the currently selected image in the RadRichTextEditor.

C#
public Task<RichTextImage> GetImageAsync()
Returns:

Task<RichTextImage>

An instance of the RichTextImage class or null, if there is no image.

Gets asynchronously the current text selection in the RadRichTextEditor.

C#
public Task<RichTextSelection> GetSelectionAsync()
Returns:

Task<RichTextSelection>

An instance of the RichTextSelection class or null, if there is no text selection.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Events

Raised when the FontAttributes property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextFontAttributes>> FontAttributesChanged

Raised when the FontFamily property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<string>> FontFamilyChanged

Raised when the FontSize property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextUnit>> FontSizeChanged

Raised when the HighlightTextColor property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<Color>> HighlightTextColorChanged

Raised when the HorizontalTextAlignment property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextHorizontalAlignment>> HorizontalTextAlignmentChanged

Raised when an error occurs when inserting an image in the RadRichTextEditor.

C#
public event EventHandler<InsertImageErrorEventArgs> InsertImageError

Raised when the IsHyperlinkSelected property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<bool>> IsHyperlinkSelectedChanged

Raised when the IsImageSelected property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<bool>> IsImageSelectedChanged

Raised when the IsReadOnly property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<bool>> IsReadOnlyChanged

Raised when the ListType property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextListType>> ListTypeChanged

Raised when an error occurs when openning a hyperlink in the RadRichTextEditor.

C#
public event EventHandler<OpenHyperlinkErrorEventArgs> OpenHyperlinkError

Raised when the user has requested to pick an image in the RadRichTextEditor.

C#
public event EventHandler<PickImageEventArgs> PickImage

Raised when the SelectionRange property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextSelectionRange>> SelectionRangeChanged

Raised when the TextColor property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<Color>> TextColorChanged

Raised when the TextDecorations property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextDecorations>> TextDecorationsChanged

Raised when the TextFormatting property of the RadRichTextEditor has changed.

C#
public event EventHandler<ValueChangedEventArgs<RichTextFormatting>> TextFormattingChanged
In this article
DefinitionConstructorsRadRichTextEditor()FieldsAutoGenerateContextMenuPropertyBackgroundColorPropertyBorderColorPropertyBorderThicknessPropertyBusyIndicatorContentPropertyBusyIndicatorTemplatePropertyCornerRadiusPropertyFontAttributesPropertyFontFamilyPropertyFontSizePropertyHighlightTextColorPropertyHorizontalTextAlignmentPropertyIsBusyPropertyIsDocumentLoadedPropertyIsHyperlinkSelectedPropertyIsImageSelectedPropertyIsReadOnlyPropertyListTypePropertySelectionRangePropertySourcePropertyTextColorPropertyTextDecorationsPropertyTextFormattingPropertyPropertiesAlignCenterCommandAlignJustifyCommandAlignLeftCommandAlignRightCommandApplyHyperlinkCommandAutoGenerateContextMenuBackgroundColorBorderColorBorderThicknessBusyIndicatorContentBusyIndicatorTemplateClearFormattingCommandContextMenuItemsCopyCommandCornerRadiusCutCommandFontAttributesFontFamilyFontSizeHighlightTextColorHorizontalTextAlignmentIndentCommandInsertImageCommandIsBusyIsDocumentLoadedIsHyperlinkSelectedIsImageSelectedIsReadOnlyListTypeOpenHyperlinkCommandOutdentCommandPasteCommandRedoCommandRemoveHyperlinkCommandRemoveImageCommandSelectAllCommandSelectionRangeSourceTextColorTextDecorationsTextFormattingToggleBoldCommandToggleBulletingCommandToggleItalicCommandToggleNumberingCommandToggleStrikethroughCommandToggleSubscriptCommandToggleSuperscriptCommandToggleUnderlineCommandUndoCommandMethodsGetHtmlAsync()GetHyperlinkAsync()GetImageAsync()GetSelectionAsync()OnPropertyChanged(string)EventsFontAttributesChangedFontFamilyChangedFontSizeChangedHighlightTextColorChangedHorizontalTextAlignmentChangedInsertImageErrorIsHyperlinkSelectedChangedIsImageSelectedChangedIsReadOnlyChangedListTypeChangedOpenHyperlinkErrorPickImageSelectionRangeChangedTextColorChangedTextDecorationsChangedTextFormattingChanged
Not finding the help you need?
Contact Support