blazor-devexpress-dot-blazor-dot-richedit-dot-document-d43896c3.md
Provides access to document lists.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public Lists Lists { get; }
| Type | Description |
|---|---|
| Lists |
An object that allows you to manage document lists.
|
<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}");
}
}
See Also