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

WrapType Enum

Lists values that specify how text wraps around an image.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public enum WrapType

Members

Name Description
Inline

A shape is displayed in the text and is treated like a character.

TopAndBottom

The text is displayed above and below a shape.

Tight

Currently not supported and is displayed as the Square wrap type.
The text is wrapped tightly around the shape.

Through

Currently not supported and is displayed as the Square wrap type.
The text is wrapped tightly around a shape and can fill the transparent background around the shape.

Square

The text is wrapped around the rectangular borders of a shape.

BehindText

A shape is displayed behind the text.

InFrontOfText

A shape is displayed in front of the text.

Related API Members

The following properties accept/return WrapType values:

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 cancelled. */
        try {
            documentAPI = richEdit.DocumentAPI;
            @* ... *@
            Image firstImage = await documentAPI.Images.GetAsync(0);
            @* ... *@
            WrapType firstImageWrapType = firstImage.WrapType;
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}
See Also