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

Reperesents an image source from a data buffer in the RadRichTextEditor.

Definition

Constructors

Initializes a new instance of the RichTextImageSource class.

C#
public RichTextDataImageSource(byte[] data, RichTextImageType type)
Parameters:databyte[]

Specifies the data buffer of the image.

typeRichTextImageType

Specifies the format type of the image.

Properties

Gets the data buffer of the image.

C#
public byte[] Data { get; }

Gets the format type of the image.

C#
public RichTextImageType Type { get; }

Methods

ToImageSource()

ImageSource

Converts the current RichTextDataImageSource to an ImageSource.

C#
public override ImageSource ToImageSource()
Returns:

ImageSource

The converted ImageSource.

Overrides: RichTextImageSource.ToImageSource()