Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WrapType Enum

Lists values that specify how text wraps around an image.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
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

Razor
<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.WrapType != WrapType.TopAndBottom)
                    properties.WrapType = WrapType.TopAndBottom;
            });
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}
See Also