RichTextSource
Abstract class whose implementors provide HTML source for the RadRichTextEditor.
Definition
Namespace:Telerik.Maui.Controls.RichTextEditor
Assembly:Telerik.Maui.Controls.dll
Syntax:
[TypeConverter(typeof(RichTextSourceTypeConverter))]
public abstract class RichTextSource : BindableObject
Inheritance: objectRichTextSource
Derived Classes:
Constructors
protected RichTextSource()
Methods
Returns a new RichTextHtmlStreamSource that reads from stream.
public static RichTextSource FromStream(Func<CancellationToken, Task<Stream>> stream)
A delegate returning Task<TResult>.
Returns:An instance of RichTextSource.
Returns a new RichTextHtmlStreamSource that reads from stream.
public static RichTextSource FromStream(Func<Stream> stream)
A delegate returning Stream.
Returns:An instance of RichTextSource.
Returns a new RichTextHtmlStreamSource that reads from stream.
public static RichTextSource FromStream(Func<Task<Stream>> stream)
A delegate returning Task<TResult>.
Returns:An instance of RichTextSource.
Returns a new RichTextHtmlStringSource from the specified string.
public static RichTextSource FromString(string html)
The HTML string.
Returns:An instance of RichTextSource.
Raises the SourceChanged event to notify that the source has changed.
protected void RaiseSourceChanged()
Operators
Converts a HTML string to a RichTextSource.
public static implicit operator RichTextSource(string html)
The HTML string.
Returns: