Version

Search Results

IntersectsWith(SnapshotSpan) Method

Indicates whether the span intersects with the specified span. Syntax Parameters span The span to test. Return Value True if the spans intersect; otherwise False.

IntersectsWith(TextSpan) Method

Indicates whether the span intersects with the specified span. Syntax Parameters span The span to test. Return Value True if the spans intersect; otherwise False.

IntersectsWith Method (SnapshotSpan)

Indicates whether the span intersects with the specified span. Overload List

IsEmpty Property

Returns true if the length of the span is 0 (read-only). Syntax

Length Property (SnapshotSpan)

Returns the length of the text span (read-only). Syntax Remarks Note: if the length is negative that means the Start of the span is before the Offset

Offset Property (SnapshotSpan)

Returns the zero-based offset from the beginning of the TextDocumentSnapshot (read-only). Syntax

Equality Operator (SnapshotSpan)

Compares the values of two SnapshotSpan structures for equality Syntax Parameters span1 The first structurespan2 The other structure Return Value true if the two instances are equal; otherwise false

Implicit Type Conversion Operator (SnapshotSpan)

Implicitly converts the SnapshotSpan to a TextSpan. Syntax Parameters span The SnapshotSpan Return Value The TextSpan

Inequality Operator (SnapshotSpan)

Compares the values of two SnapshotSpan structures for inequality Syntax Parameters span1 The first structurespan2 The other structure Return Value true if the two instances are not equal; otherwise false

Overlap(SnapshotSpan) Method

Returns a span that contains just the overlap between this span and another. Syntax Parameters span The span to overlap. Return Value A new SnapshotSpan with the overlap or null if the spans dont overlap.