Version

SnapshotSpan Structure Members

The following tables list the members exposed by SnapshotSpan.

Public Constructors
 NameDescription
Public ConstructorSnapshotSpan ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyEndReturns the end point from the beginning of the TextDocumentSnapshot (read-only).  
Public PropertyEndLocationReturns the end point within the TextDocumentSnapshot (read-only).  
Public PropertyIsEmptyReturns true if the length of the span is 0 (read-only).  
Public PropertyLengthReturns the length of the text span (read-only).  
Public PropertyOffsetReturns the zero-based offset from the beginning of the TextDocumentSnapshot (read-only).  
Public PropertySnapshotReturns the associated TextDocumentSnapshot (read-only).  
Public PropertyStartReturns the start point within the TextDocumentSnapshot (read-only).  
Public PropertyStartLocationReturns the normalized start location within the TextDocumentSnapshot (read-only).  
Public PropertyTextSpanReturns the TextSpan structure (read-only).  
Public Methods
 NameDescription
Public MethodEqualsOverloaded. Determines if a structure is equatable to this one.  
Public MethodGetHashCodeReturns the hash code of the structure.  
Public MethodGetTextReturns the associated text.  
Public MethodIntersectionOverloaded. Returns a span that contains just the intersect between this span and another.  
Public MethodIntersectsWithOverloaded. Indicates whether the span intersects with the specified span.  
Public MethodOverlapOverloaded. Returns a span that contains just the overlap between this span and another.  
Public MethodOverlapsWithOverloaded. Indicates whether the span overlaps with the specified span.  
Public MethodToStringReturns the string representation of this object.  
Public MethodTranslateToTranslates the span from one snapshot to another  
Public Operators
public Operator Equality Compares the values of two SnapshotSpan structures for equality
public Operator Implicit Type Conversion Implicitly converts the SnapshotSpan to a TextSpan.
public Operator Inequality Compares the values of two SnapshotSpan structures for inequality
See Also