blazor-devexpress-dot-blazor-dot-richedit-11ef4b6f.md
Lists values that specify how text wraps around an image.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public enum WrapType
| 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.
|
The following properties accept/return WrapType values:
<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