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

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.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit

Declaration

public InsertOptions InsertOptions { get; set; }

Property Value

Type Description
InsertOptions

A InsertOptions object enumeration value specifying how formatting is applied to the formatted text inserted into a document.

The default is InsertOptions.MatchDestinationFormatting

Property Paths

You can access this nested property as listed below:

Object Type Path to InsertOptions
RichEditControl
.CopyPasteOptions .InsertOptions

Remarks

Set the InsertOptions option to InsertOptions.KeepSourceFormatting to retain the last item in the numbered list inserted using one of the following methods:

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 InsertOptions property value is ignored when inserting to the document header or footer.

See Also