Skip to main content

ImageProperties.Outline Property

Specifies the outline settings of an image.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public Outline Outline { get; set; }

Property Value

Type Description
Outline

An object that implements the IOutline interface and contains outline settings.

Remarks

<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 canceled. */
        try {
            documentAPI = richEdit.DocumentAPI;
            @* ... *@
            Image firstImage = await documentAPI.Images.GetAsync(0);
            @* ... *@
            await firstImage.ChangePropertiesAsync(properties => {
                if (firstImage.Outline.Width == 0) {
                    properties.Outline.Color = System.Drawing.Color.Black;
                    properties.Outline.Width = UnitConverter.CentimetersToTwips(0.2f);
                }
            });
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}

Use the Outline property to get the color and/or width of the image’s outline.

See Also