DXRichEditCopyPasteOptions.InsertOptions Property
Gets or sets options specifying how formatting is applied to the last paragraph of a numbered list inserted into a document. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v24.2.dll
NuGet Package: DevExpress.Wpf.RichEdit
#Declaration
public InsertOptions InsertOptions { get; set; }
#Property Value
Type | Description |
---|---|
Insert |
A Insert The default is Insert |
Available values:
Name | Description |
---|---|
Keep |
Retains character styles and direct formatting (font size, emphasis, etc.) applied to the inserted text. |
Match |
Retains direct formatting (font size, emphasis, etc.) applied to the inserted text, but ignores all style properties. |
Use |
Retains styles associated with the target document when style definition conflicts occur. |
Keep |
Removes all formatting and non-text elements (pictures, shapes, comments, etc.). |
Merge |
Changes the formatting so that it matches the text that surrounds the inserted content. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Insert |
---|---|
Rich |
|
#Remarks
Set the InsertOptions option to InsertOptions.KeepSourceFormatting to retain the last item in the numbered list inserted using one of the following methods:
- SubDocument.InsertHtmlText
- SubDocument.AppendHtmlText
- SubDocument.InsertRtfText
- SubDocument.AppendRtfText
- SubDocument.InsertDocumentContent
Otherwise, the last item in the numbered list may lose formatting and be removed from the list, i.e., appear as a simple paragraph.
Important
The Insert