Class RichTextSource
Abstract class whose implementors provide HTML source for the RadRichTextEditor.
Inheritance
Namespace: Telerik.XamarinForms.RichTextEditor
Assembly: Telerik.XamarinForms.RichTextEditor.dll
Syntax
public abstract class RichTextSource : BindableObject
Constructors
RichTextSource()
Declaration
protected RichTextSource()
Methods
FromStream(Func<Stream>)
Returns a new RichTextHtmlStreamSource that reads from stream.
Declaration
public static RichTextSource FromStream(Func<Stream> stream)
Parameters
System.Func<System.IO.Stream>
stream
A delegate returning System.IO.Stream. |
Returns
RichTextSource
An instance of RichTextSource. |
FromStream(Func<CancellationToken, Task<Stream>>)
Returns a new RichTextHtmlStreamSource that reads from stream.
Declaration
public static RichTextSource FromStream(Func<CancellationToken, Task<Stream>> stream)
Parameters
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>>
stream
A delegate returning System.Threading.Tasks.Task<>. |
Returns
RichTextSource
An instance of RichTextSource. |
FromStream(Func<Task<Stream>>)
Returns a new RichTextHtmlStreamSource that reads from stream.
Declaration
public static RichTextSource FromStream(Func<Task<Stream>> stream)
Parameters
System.Func<System.Threading.Tasks.Task<System.IO.Stream>>
stream
A delegate returning System.Threading.Tasks.Task<>. |
Returns
RichTextSource
An instance of RichTextSource. |
FromString(String)
Returns a new RichTextHtmlStringSource from the specified string.
Declaration
public static RichTextSource FromString(string html)
Parameters
System.String
html
The HTML string. |
Returns
RichTextSource
An instance of RichTextSource. |
RaiseSourceChanged()
Declaration
protected void RaiseSourceChanged()
Operators
Implicit(String to RichTextSource)
Converts a HTML string to a RichTextSource.
Declaration
public static implicit operator RichTextSource(string html)
Parameters
System.String
html
The HTML string. |
Returns
RichTextSource
|