Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXRichEditCopyPasteOptions.TabInsertOptions Property

Gets or sets how to set tab stops in the inserted paragraph.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v24.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

#Declaration

[Browsable(false)]
public InsertOptions TabInsertOptions { get; set; }

#Property Value

Type Description
InsertOptions

A InsertOptions enumeration value that specifies whose tab arrangement should be used for the inserted paragraph.

The default is InsertOptions.KeepSourceFormatting.

Available values:

Name Description
KeepSourceFormatting

Retains character styles and direct formatting (font size, emphasis, etc.) applied to the inserted text.

MatchDestinationFormatting

Retains direct formatting (font size, emphasis, etc.) applied to the inserted text, but ignores all style properties.

UseDestinationStyles

Retains styles associated with the target document when style definition conflicts occur.

KeepTextOnly

Removes all formatting and non-text elements (pictures, shapes, comments, etc.).

MergeFormatting

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 TabInsertOptions
RichEditControl
.CopyPasteOptions .TabInsertOptions

#Remarks

Note

We recommend that you use the DXRichEditCopyPasteOptions.InsertOptions property to specify how to set tab stops in the inserted content.

Use the TabInsertOptions property to specify whether the inserted paragraph should retain its tab arrangement (accessible with the Paragraph.BeginUpdateTabs method) or apply the tab arrangement of the paragraph to which it is copied.

See Also