SubDocumentType Enum
Lists values that specify a sub-document type.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public enum SubDocumentType
Members
Name | Description |
---|---|
Main
|
The main sub-document. |
Header
|
A header. |
Footer
|
A footer. |
TextBox
|
A text box. |
Related API Members
The following properties accept/return SubDocumentType values:
Remarks
<DxRichEdit @bind-Selection="@selection" @ref="@richEdit" />
@code {
DxRichEdit richEdit;
Selection selection;
@* ... *@
/* 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 {
@* ... *@
// Checks whether the main sub-document is active
if (selection.ActiveSubDocument.Type == SubDocumentType.Main) {/*...*/}
@* ... *@
}
catch (OperationCanceledException e) {
Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
}
}
See Also