Class RichTextStreamImageSource
Reperesents an image source from a Stream in the RadRichTextEditor.
Inherited Members
Namespace: Telerik.Maui.Controls.RichTextEditor
Assembly: Telerik.Maui.Controls.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 Microsoft.Maui.Controls.ImageSource.
Declaration
public override ImageSource ToImageSource()
Returns
Microsoft.Maui.Controls.ImageSource
The converted Microsoft.Maui.Controls.ImageSource. |