ListLevelProperties.FontBold Property
Specifies whether the list level’s number or bullet is bold.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v21.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public bool FontBold { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the list level’s number or bullet is bold; otherwise, false. |
Remarks
Use the FontBold property to get whether a list level’s number or bullet is bold.
<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.FontBold != true)
properties.FontBold = true;
});
@* ... *@
}
catch (OperationCanceledException e) {
Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
}
}
See Also