Table of Contents

Method InsertText

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

InsertText(BookmarkReference, string, BookmarkInsertPosition, CharacterFormat?)

Inserts a text run at a bookmark.

public static TextRun InsertText(this BookmarkReference bookmark, string text, BookmarkInsertPosition position = BookmarkInsertPosition.AtEnd, CharacterFormat? format = null)

Parameters

bookmark BookmarkReference

The bookmark.

text string

The text to insert.

position BookmarkInsertPosition

Where the text goes relative to the markers.

format CharacterFormat

The run formatting, or null to specify none.

Returns

TextRun

The inserted run.

Exceptions

ArgumentNullException

An argument is null.