Skip to main content
All docs
V21.2

Paragraphs.CreateAsync(Int32) Method

Inserts a paragraph mark at the specified position and creates a new paragraph.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public ValueTask<Paragraph> CreateAsync(
    int position
)

Parameters

Name Type Description
position Int32

The position where to insert the paragraph mark.

Returns

Type Description
ValueTask<Paragraph>

A structure that stores an awaitable result of an asynchronous operation. The awaitable result is a paragraph object.

Remarks

The paragraph mark (¶) indicates the end of the new paragraph.

<DxRichEdit @ref="richEdit" CssClass="w-100 ch-720" />

@code {
    DxRichEdit richEdit;
    @* ... *@
        Document documentAPI = richEdit.DocumentAPI;
        @* ... *@
        Paragraph bodyParagraph = await documentAPI.Paragraphs.CreateAsync(0);
        @* ... *@
}
See Also