Table of Contents

Method Before

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

Before(Inline)

Creates the position just before an inline in its paragraph (a picture, a tab, a break, a run).

public static DocumentPosition Before(Inline inline)

Parameters

inline Inline

The inline.

Returns

DocumentPosition

The position; the inline's own content starts there, so a one-wide inline is the span from it to the next offset.

Exceptions

ArgumentNullException

inline is null.

ArgumentException

The inline is not in a paragraph's content (detached, or in a field's code).