RichTextImageSource
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
protected RichTextImageSource()
Methods
Creates a new instance of RichTextImageSource with the specified data buffer.
public static RichTextImageSource FromData(byte[] data, RichTextImageType type)
Specifies the data buffer of the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:An instance of RichTextImageSource with the specified data buffer.
Creates a new instance of RichTextImageSource with the specified file path.
public static RichTextImageSource FromFile(string path, RichTextImageType type)
Specifies the file path to the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:An instance of RichTextImageSource with the specified file path.
Creates a new instance of RichTextImageSource with the specified file path.
public static RichTextImageSource FromFile(string path)
Specifies the file path to the image.
Returns:An instance of RichTextImageSource with the specified file path.
Creates a new instance of RichTextImageSource with the specified Stream.
public static RichTextImageSource FromStream(Func<CancellationToken, Task<Stream>> stream, RichTextImageType type)
Specifies a delegate returning a Stream for the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:Creates a new instance of RichTextImageSource with the specified Stream.
public static RichTextImageSource FromStream(Func<Stream> stream, RichTextImageType type)
Specifies a delegate returning a Stream for the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:Creates a new instance of RichTextImageSource with the specified Stream.
public static RichTextImageSource FromStream(Func<Task<Stream>> stream, RichTextImageType type)
Specifies a delegate returning a Stream for the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:Creates a new instance of RichTextImageSource with the specified Stream.
public static RichTextImageSource FromStream(Stream stream, RichTextImageType type)
Specifies a Stream for the image.
typeRichTextImageTypeSpecifies the format type of the image.
Returns:Creates a new instance of RichTextImageSource with the specified URL.
public static RichTextImageSource FromUrl(string url)
Specifies the source URL of the image.
Returns:An instance of RichTextImageSource with the specified URL.
ToImageSource()
ImageSource
Converts the current RichTextImageSource to an ImageSource.
public abstract ImageSource ToImageSource()
ImageSource
The converted ImageSource.
Operators
Converts the specified RichTextImageSource to an ImageSource.
public static implicit operator ImageSource(RichTextImageSource imageSource)
The RichTextImageSource to convert to.
Returns:ImageSource