Table of Contents

Struct DocumentSpan

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

The content between two positions. The positions may be given in either order; the span keeps them in document order.

public readonly struct DocumentSpan : IEquatable<DocumentSpan>
Implements
Inherited Members
Extension Methods

Constructors

DocumentSpan(DocumentPosition, DocumentPosition)

Initializes a span between two positions, in either order.

Properties

End

Gets the later end.

IsEmpty

Gets a value indicating whether the span covers nothing.

Start

Gets the earlier end.

Methods

Equals(DocumentSpan)
Equals(object?)
GetHashCode()
ToString()

Operators

operator ==(DocumentSpan, DocumentSpan)

Determines whether two spans are equal.

operator !=(DocumentSpan, DocumentSpan)

Determines whether two spans differ.