Back to Devexpress

RichEditBehaviorOptions.PasteLineBreakSubstitution Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditbehavioroptions-17d59f99.md

latest3.0 KB
Original Source

RichEditBehaviorOptions.PasteLineBreakSubstitution Property

Specifies the substitute character that is used to replace the line break in pasted HTML.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(LineBreakSubstitute.None)]
public virtual LineBreakSubstitute PasteLineBreakSubstitution { get; set; }
vb
<DefaultValue(LineBreakSubstitute.None)>
Public Overridable Property PasteLineBreakSubstitution As LineBreakSubstitute

Property Value

TypeDefaultDescription
LineBreakSubstituteNone

A LineBreakSubstitute enumeration value, specifying a substitute character for a HTML line break.

|

Available values:

NameDescription
None

Line break is not replaced, i.e. it is left intact.

| | Paragraph |

Line break is treated as a paragraph delimiter.

| | Space |

Line break is substituted with a space.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to PasteLineBreakSubstitution
RichEditControlOptionsBase

.Behavior .PasteLineBreakSubstitution

|

Remarks

Use the PasteLineBreakSubstitution property to replace a line break in pasted HTML text with a space or a paragraph.

See Also

HtmlDocumentImporterOptions

RichEditControl.BeforeImport

IRichEditDocumentServer.BeforeImport

RichEditBehaviorOptions.Paste

PasteSingleCellAsText

RichEditControl.Paste

InsertDocumentContent

RichEditBehaviorOptions Class

RichEditBehaviorOptions Members

DevExpress.XtraRichEdit Namespace