VirtualSnapshotSpan VirtualSnapshotSpan VirtualSnapshotSpan Struct

Definition

Represents the range between two VirtualSnapshotPoint objects.

public struct VirtualSnapshotSpan
type VirtualSnapshotSpan = struct
Public Structure VirtualSnapshotSpan
Inheritance
VirtualSnapshotSpanVirtualSnapshotSpanVirtualSnapshotSpan

Remarks

Virtual spaces are "extra" spaces at the end of a line that do not add to the length of the line. You can enable or disable virtual spaces in Visual Studio. When virtual spaces are disabled, pressing on the right arrow key at the end of a line causes the caret to move to the beginning of the next line. When virtual spaces are enabled, pressing on the right arrow key at the end of a line causes the caret to move forward on the same line.

Constructors

VirtualSnapshotSpan(SnapshotSpan) VirtualSnapshotSpan(SnapshotSpan) VirtualSnapshotSpan(SnapshotSpan)

Initializes a new instance of a VirtualSnapshotSpan in the specified snapshot span, with no virtual spaces.

VirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint) VirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint) VirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Initializes a new instance of a VirtualSnapshotSpan from the specified start and end points.

Properties

End End End

Gets the ending virtual point.

IsEmpty IsEmpty IsEmpty

Determines whether the start and end points are in the same place.

IsInVirtualSpace IsInVirtualSpace IsInVirtualSpace

Determines whether the start or end points are in virtual space.

Length Length Length

The length of this span, taking into account virtual space.

Snapshot Snapshot Snapshot

The ITextSnapshot to which this snapshot span refers.

SnapshotSpan SnapshotSpan SnapshotSpan

Gets the non-virtual snapshot span to which this span corresponds.

Start Start Start

Gets the starting virtual point.

Methods

Contains(VirtualSnapshotPoint) Contains(VirtualSnapshotPoint) Contains(VirtualSnapshotPoint)

Determines whether or not the given virtual point is contained within this virtual span.

Contains(VirtualSnapshotSpan) Contains(VirtualSnapshotSpan) Contains(VirtualSnapshotSpan)

Determines whether the specified virtual span falls completely within this virtual span.

Equals(Object) Equals(Object) Equals(Object)

Determines whether two VirtualSnapshotSpan objects are the same.

GetHashCode() GetHashCode() GetHashCode()

Gets the hash code for the object.

GetText() GetText() GetText()

The text contained by this virtual snapshot span.

Intersection(VirtualSnapshotSpan) Intersection(VirtualSnapshotSpan) Intersection(VirtualSnapshotSpan)

Returns the intersection with the given virtual span.

IntersectsWith(VirtualSnapshotSpan) IntersectsWith(VirtualSnapshotSpan) IntersectsWith(VirtualSnapshotSpan)

Determines whether the specified virtual span intersects this span.

Overlap(VirtualSnapshotSpan) Overlap(VirtualSnapshotSpan) Overlap(VirtualSnapshotSpan)

Returns the overlap with the specified virtual span.

OverlapsWith(VirtualSnapshotSpan) OverlapsWith(VirtualSnapshotSpan) OverlapsWith(VirtualSnapshotSpan)

Determines whether the specified span overlaps this span.

ToString() ToString() ToString()

Converts the object to a string.

TranslateTo(ITextSnapshot) TranslateTo(ITextSnapshot) TranslateTo(ITextSnapshot)

Translates this span to the specified snapshot.

TranslateTo(ITextSnapshot, SpanTrackingMode) TranslateTo(ITextSnapshot, SpanTrackingMode) TranslateTo(ITextSnapshot, SpanTrackingMode)

Translates this span to the specified snapshot with the given tracking mode.

Operators

Equality(VirtualSnapshotSpan, VirtualSnapshotSpan) Equality(VirtualSnapshotSpan, VirtualSnapshotSpan) Equality(VirtualSnapshotSpan, VirtualSnapshotSpan)

Determines whether two VirtualSnapshotSpan objects are the same.

Inequality(VirtualSnapshotSpan, VirtualSnapshotSpan) Inequality(VirtualSnapshotSpan, VirtualSnapshotSpan) Inequality(VirtualSnapshotSpan, VirtualSnapshotSpan)

Determines whether two VirtualSnapshotSpan objects are different.

Applies to