Table of Contents

Method Insert

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

Insert(BookmarkReference, IReadOnlyList<Inline>, BookmarkInsertPosition)

Inserts inlines at a bookmark, in order.

public static void Insert(this BookmarkReference bookmark, IReadOnlyList<Inline> inlines, BookmarkInsertPosition position = BookmarkInsertPosition.AtEnd)

Parameters

bookmark BookmarkReference

The bookmark.

inlines IReadOnlyList<Inline>

The detached inlines to insert.

position BookmarkInsertPosition

Where the content goes relative to the markers.

Exceptions

ArgumentNullException

An argument is null.

InvalidOperationException

A marker is detached from its paragraph.