Class RichTextStreamImageSource
Reperesents an image source from a Stream in the RadRichTextEditor.
Inherited Members
Namespace: Telerik.XamarinForms.RichTextEditor
Assembly: Telerik.XamarinForms.RichTextEditor.dll
Syntax
public class RichTextStreamImageSource : RichTextImageSource
Constructors
RichTextStreamImageSource(Func<CancellationToken, Task<Stream>>, RichTextImageType)
Initializes a new instance of the RichTextStreamImageSource class.
Declaration
public RichTextStreamImageSource(Func<CancellationToken, Task<Stream>> stream, RichTextImageType type)
Parameters
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>>
stream
Specifies a delegate returning a Stream for the image. |
RichTextImageType
type
Specifies the format type of the image. |
Properties
Stream
Gets the delegate returning a Stream for the image.
Declaration
public Func<CancellationToken, Task<Stream>> Stream { get; }
Property Value
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>>
|
Type
Gets the format type of the image.
Declaration
public RichTextImageType Type { get; }
Property Value
RichTextImageType
|
Methods
ToImageSource()
Converts the current RichTextStreamImageSource to an Xamarin.Forms.ImageSource.
Declaration
public override ImageSource ToImageSource()
Returns
Xamarin.Forms.ImageSource
The converted Xamarin.Forms.ImageSource. |