Back to Devexpress

Lists Class

blazor-devexpress-dot-blazor-dot-richedit-2f78becf.md

latest1.9 KB
Original Source

Lists Class

Contains members that allow you to manage document lists.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public class Lists :
    ElementCollection<List>

The following members return Lists objects:

Remarks

Use the Lists property to access an object of the Lists type. This object contains methods to create and find lists.

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;
            @* ... *@
            List list = await documentAPI.Lists.CreateAsync(ListType.MultiLevel);
            IReadOnlyList<List> allLists = await documentAPI.Lists.GetAllAsync();
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}

Inheritance

Object ElementCollection<List> Lists

See Also

Lists Members

DevExpress.Blazor.RichEdit Namespace