ListLevelFormat Enum

Lists values that specify the format for a list level’s number or bullet.

Namespace: DevExpress.Blazor.RichEdit

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

Declaration

public enum ListLevelFormat

Members

Name Description Example
Decimal

The sequence consists of decimal numbers.

1, 2, 3

Bullet

The sequence consists of bullet characters.

●, ●, ●

CardinalText

The sequence consists of numbers written alphabetically.

One, Two, Three

DecimalEnclosedParentheses

The sequence consists of decimal numbers enclosed in parentheses.

(1), (2), (3)

DecimalZero

The sequence consists of decimal numbers with a zero added to numbers less than ten.

01, 02, … , 09, 10

Hex

The sequence consists of hexadecimal numbers.

1, 2, … , e, f

LowerLetter

The sequence consists of lowercase letters of the alphabet.

a, b, c

LowerRoman

The sequence consists of lowercase Roman numerals.

i, ii, iii

None

The default format. The sequence consists of decimal numbers.

1, 2, 3

NumberInDash

The sequence consists of decimal numbers enclosed in dashes.

- 1 -, - 2 -, - 3 -

Ordinal

The sequence consists of ordinal numbers written as numerals with letter suffixes.

1st, 2nd, 3rd

OrdinalText

The sequence consists of ordinal numbers written alphabetically.

First, Second, Third

UpperLetter

The sequence consists of uppercase letters of the alphabet.

A, B, C

UpperRoman

The sequence consists of uppercase Roman numerals.

I, II, III

Related API Members

The following properties accept/return ListLevelFormat values:

Remarks

<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 cancelled. */
        try {
            documentAPI = richEdit.DocumentAPI;
            @* ... *@
            List list = await documentAPI.Lists.CreateAsync(ListType.MultiLevel);
            IReadOnlyList<ListLevel> listLevels = list.ListLevels;
            ListLevel firstLevel = listLevels[0];
            @* ... *@
            await list.ChangeLevelPropertiesAsync(0, properties => {
                if (firstLevel.ListLevelFormat != ListLevelFormat.Decimal)
                    properties.ListLevelFormat = ListLevelFormat.Decimal;
            });
            @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}
See Also