ClassRichTextImageSource
Reperesents an image source in the RadRichTextEditor.
Definition
Namespace:Telerik.Maui.Controls.RichTextEditor
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class RichTextImageSource
Inheritance: objectRichTextImageSource
Derived Classes:
Constructors
RichTextImageSource()
Declaration
protected RichTextImageSource()
Methods
FromData(byte[], RichTextImageType)
Creates a new instance of RichTextImageSource with the specified data buffer.
Declaration
public static RichTextImageSource FromData(byte[] data, RichTextImageType type)
Parameters
data
byte[]
Specifies the data buffer of the image.
type
Specifies the format type of the image.
Returns
An instance of RichTextImageSource with the specified data buffer.
FromFile(string)
Creates a new instance of RichTextImageSource with the specified file path.
Declaration
public static RichTextImageSource FromFile(string path)
Parameters
path
Specifies the file path to the image.
Returns
An instance of RichTextImageSource with the specified file path.
FromFile(string, RichTextImageType)
Creates a new instance of RichTextImageSource with the specified file path.
Declaration
public static RichTextImageSource FromFile(string path, RichTextImageType type)
Parameters
path
Specifies the file path to the image.
type
Specifies the format type of the image.
Returns
An instance of RichTextImageSource with the specified file path.
FromStream(Func<CancellationToken, Task<Stream>>, RichTextImageType)
Creates a new instance of RichTextImageSource with the specified Stream.
Declaration
public static RichTextImageSource FromStream(Func<CancellationToken, Task<Stream>> stream, RichTextImageType type)
Parameters
stream
Func<CancellationToken, Task<Stream>>
Specifies a delegate returning a Stream for the image.
type
Specifies the format type of the image.
Returns
FromStream(Func<Stream>, RichTextImageType)
Creates a new instance of RichTextImageSource with the specified Stream.
Declaration
public static RichTextImageSource FromStream(Func<Stream> stream, RichTextImageType type)
Parameters
stream
Specifies a delegate returning a Stream for the image.
type
Specifies the format type of the image.
Returns
FromStream(Func<Task<Stream>>, RichTextImageType)
Creates a new instance of RichTextImageSource with the specified Stream.
Declaration
public static RichTextImageSource FromStream(Func<Task<Stream>> stream, RichTextImageType type)
Parameters
stream
Specifies a delegate returning a Stream for the image.
type
Specifies the format type of the image.
Returns
FromStream(Stream, RichTextImageType)
Creates a new instance of RichTextImageSource with the specified Stream.
Declaration
public static RichTextImageSource FromStream(Stream stream, RichTextImageType type)
Parameters
stream
Specifies a Stream for the image.
type
Specifies the format type of the image.
Returns
FromUrl(string)
Creates a new instance of RichTextImageSource with the specified URL.
Declaration
public static RichTextImageSource FromUrl(string url)
Parameters
url
Specifies the source URL of the image.
Returns
An instance of RichTextImageSource with the specified URL.
ToImageSource()
Converts the current RichTextImageSource to an ImageSource.
Declaration
public abstract ImageSource ToImageSource()
Returns
ImageSource
The converted ImageSource.
Operators
implicit operator ImageSource(RichTextImageSource)
Converts the specified RichTextImageSource to an ImageSource.
Declaration
public static implicit operator ImageSource(RichTextImageSource imageSource)
Parameters
imageSource
The RichTextImageSource to convert to.
Returns
ImageSource