Skip to main content
A newer version of this page is available. .

LineSpacingType Enum

Lists values that specify the line spacing type for a paragraph.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public enum LineSpacingType

Members

Name Description
Single

The single line spacing.

Sesquialteral

The line spacing is one-and-one-half times that of single spacing.

Double

The double line spacing.

Multiple

Allows you to set line spacing that is several times that of single spacing. Use the LineSpacing property to specify the spacing value in numbers greater than 1 (for instance, the 1.75 number specifies line spacing that is 75 percent higher than the Single spacing).

Exactly

Allows you to specify the exact line spacing. Use the LineSpacing property to specify the spacing value in twips.

AtLeast

Allows you to specify the minimum line spacing that RichEdit can increase to fit the font or graphic on the line. Use the LineSpacing property to specify the minimum spacing value in twips.

Related API Members

The following properties accept/return LineSpacingType 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;
            @* ... *@
            IReadOnlyList<Paragraph> paragraphs = await documentAPI.Paragraphs.GetAllAsync();     
            foreach (Paragraph p in paragraphs)
                await p.ChangePropertiesAsync(properties => {
                    if (p.LineSpacingType != LineSpacingType.Exactly)
                        properties.LineSpacingType = LineSpacingType.Exactly;
                });
                @* ... *@
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}
See Also