Back to Devexpress

ParagraphCollection.Insert(DocumentPosition, InsertOptions) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphcollection-dot-insert-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentposition-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-insertoptions-x29.md

latest2.1 KB
Original Source

ParagraphCollection.Insert(DocumentPosition, InsertOptions) Method

Inserts a new paragraph into the document at a specified position using the specified options.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
Paragraph Insert(
    DocumentPosition pos,
    InsertOptions insertOptions
)
vb
Function Insert(
    pos As DocumentPosition,
    insertOptions As InsertOptions
) As Paragraph

Parameters

NameTypeDescription
posDocumentPosition

A DocumentPosition object that specifies a position to insert a new paragraph.

| | insertOptions | InsertOptions |

An InsertOptions enumeration value, specifying how destination formatting is applied to inserted content.

|

Returns

TypeDescription
Paragraph

A paragraph that follows the inserted paragraph.

|

See Also

ParagraphCollection Interface

ParagraphCollection Members

DevExpress.XtraRichEdit.API.Native Namespace