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

Abstract class whose implementors provide HTML source for the RadRichTextEditor.

Definition

Namespace:Telerik.Maui.Controls.RichTextEditor

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
[TypeConverter(typeof(RichTextSourceTypeConverter))]
public abstract class RichTextSource : BindableObject

Inheritance: objectRichTextSource

Derived Classes: RichTextHtmlStreamSourceRichTextHtmlStringSource

Constructors

C#
protected RichTextSource()

Methods

Returns a new RichTextHtmlStreamSource that reads from stream.

C#
public static RichTextSource FromStream(Func<CancellationToken, Task<Stream>> stream)
Parameters:streamFunc<CancellationToken, Task<Stream>>

A delegate returning Task<TResult>.

Returns:

RichTextSource

An instance of RichTextSource.

Returns a new RichTextHtmlStreamSource that reads from stream.

C#
public static RichTextSource FromStream(Func<Stream> stream)
Parameters:streamFunc<Stream>

A delegate returning Stream.

Returns:

RichTextSource

An instance of RichTextSource.

Returns a new RichTextHtmlStreamSource that reads from stream.

C#
public static RichTextSource FromStream(Func<Task<Stream>> stream)
Parameters:streamFunc<Task<Stream>>

A delegate returning Task<TResult>.

Returns:

RichTextSource

An instance of RichTextSource.

Returns a new RichTextHtmlStringSource from the specified string.

C#
public static RichTextSource FromString(string html)
Parameters:htmlstring

The HTML string.

Returns:

RichTextSource

An instance of RichTextSource.

Raises the SourceChanged event to notify that the source has changed.

C#
protected void RaiseSourceChanged()

Operators

Converts a HTML string to a RichTextSource.

C#
public static implicit operator RichTextSource(string html)
Parameters:htmlstring

The HTML string.

Returns:

RichTextSource