Skip to main content
A newer version of this page is available. .

ImageBase<T>.Url Property

Gets the image’s URL.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v21.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public string Url { get; }

Property Value

Type Description
String

The image’s URL.

Remarks

The example below shows how to get an inline image‘s URL.

<DxRichEdit @ref="richEdit" />

@code {
    DxRichEdit richEdit;
    Document documentAPI;
    @* ... *@
    /* Surround the code that contains an asynchronous operation with a try-catch block to handle
    the OperationCanceledException. This exception is thrown when an asynchronous operation is cancelled. */
        try {
            documentAPI = richEdit.DocumentAPI;
            @* ... *@
            InlineImage inlineImage = await documentAPI.InlineImages.GetAsync(0);
            string URL = inlineImage.Url;
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}
See Also