Table of Contents

Method InParagraph

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

InParagraph(Paragraph, int)

Creates a position at an offset into a paragraph's content.

public static DocumentPosition InParagraph(Paragraph paragraph, int offset)

Parameters

paragraph Paragraph

The paragraph.

offset int

The offset, from 0 to the paragraph's content length.

Returns

DocumentPosition

The position.

Exceptions

ArgumentNullException

paragraph is null.

ArgumentOutOfRangeException

offset is outside the paragraph's content.