Table of Contents

Method FromBlocks

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

FromBlocks(Block, Block)

Creates a range spanning two blocks and everything between them, inclusive.

public static DocumentRange FromBlocks(Block start, Block end)

Parameters

start Block

The first block.

end Block

The last block. It may be the same node as start.

Returns

DocumentRange

The range.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The blocks have different parents, are detached, or end precedes start.