Class
RichTextStreamImageSource

Reperesents an image source from a Stream in the RadRichTextEditor.

Definition

Constructors

RichTextStreamImageSource(Func<CancellationToken, Task<Stream>>, RichTextImageType)

Initializes a new instance of the RichTextStreamImageSource class.

Declaration

cs-api-definition
public RichTextStreamImageSource(Func<CancellationToken, Task<Stream>> stream, RichTextImageType type)

Parameters

stream

Func<CancellationToken, Task<Stream>>

Specifies a delegate returning a Stream for the image.

type

RichTextImageType

Specifies the format type of the image.

Properties

Stream

Gets the delegate returning a Stream for the image.

Declaration

cs-api-definition
public Func<CancellationToken, Task<Stream>> Stream { get; }

Property Value

Func<CancellationToken, Task<Stream>>

Type

Gets the format type of the image.

Declaration

cs-api-definition
public RichTextImageType Type { get; }

Property Value

RichTextImageType

Methods

ToImageSource()

Converts the current RichTextStreamImageSource to an ImageSource.

Declaration

cs-api-definition
public override ImageSource ToImageSource()

Returns

ImageSource

The converted ImageSource.

Overrides RichTextImageSource.ToImageSource()