The following tables list the members exposed by SnapshotSpan.
Name | Description | |
---|---|---|
SnapshotSpan Constructor | Overloaded. |
Name | Description | |
---|---|---|
End | Returns the end point from the beginning of the TextDocumentSnapshot (read-only). | |
EndLocation | Returns the end point within the TextDocumentSnapshot (read-only). | |
IsEmpty | Returns true if the length of the span is 0 (read-only). | |
Length | Returns the length of the text span (read-only). | |
Offset | Returns the zero-based offset from the beginning of the TextDocumentSnapshot (read-only). | |
Snapshot | Returns the associated TextDocumentSnapshot (read-only). | |
Start | Returns the start point within the TextDocumentSnapshot (read-only). | |
StartLocation | Returns the normalized start location within the TextDocumentSnapshot (read-only). | |
TextSpan | Returns the TextSpan structure (read-only). |
Name | Description | |
---|---|---|
Equals | Overloaded. Determines if a structure is equatable to this one. | |
GetHashCode | Returns the hash code of the structure. | |
GetText | Returns the associated text. | |
Intersection | Overloaded. Returns a span that contains just the intersect between this span and another. | |
IntersectsWith | Overloaded. Indicates whether the span intersects with the specified span. | |
Overlap | Overloaded. Returns a span that contains just the overlap between this span and another. | |
OverlapsWith | Overloaded. Indicates whether the span overlaps with the specified span. | |
ToString | Returns the string representation of this object. | |
TranslateTo | Translates the span from one snapshot to another |
Equality | Compares the values of two SnapshotSpan structures for equality |
Implicit Type Conversion | Implicitly converts the SnapshotSpan to a TextSpan. |
Inequality | Compares the values of two SnapshotSpan structures for inequality |