LineSpacingType Enum
Lists values that specify the line spacing type for a paragraph.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.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 Line |
Exactly
|
Allows you to specify the exact line spacing. Use the Line |
At
|
Allows you to specify the minimum line spacing that Rich |
#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 canceled. */
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}");
}
}