Method Before
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
inlineInlineThe 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
inlineis null.- ArgumentException
The inline is not in a paragraph's content (detached, or in a field's code).