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

Reperesents an image source from a Stream in the RadRichTextEditor.

Definition

Constructors

Initializes a new instance of the RichTextStreamImageSource class.

C#
public RichTextStreamImageSource(Func<CancellationToken, Task<Stream>> stream, RichTextImageType type)
Parameters:streamFunc<CancellationToken, Task<Stream>>

Specifies a delegate returning a Stream for the image.

typeRichTextImageType

Specifies the format type of the image.

Properties

Gets the delegate returning a Stream for the image.

C#
public Func<CancellationToken, Task<Stream>> Stream { get; }

Gets the format type of the image.

C#
public RichTextImageType Type { get; }

Methods

ToImageSource()

ImageSource

Converts the current RichTextStreamImageSource to an ImageSource.

C#
public override ImageSource ToImageSource()
Returns:

ImageSource

The converted ImageSource.

Overrides: RichTextImageSource.ToImageSource()