Constructor DocumentSpan
DocumentSpan(DocumentPosition, DocumentPosition)
Initializes a span between two positions, in either order.
public DocumentSpan(DocumentPosition start, DocumentPosition end)
Parameters
startDocumentPositionOne end.
endDocumentPositionThe other end.
Exceptions
- ArgumentException
A position is
default, or the two are in different documents.