Partilhar via


VirtualSnapshotSpan Constructors

Definition

Overloads

VirtualSnapshotSpan(SnapshotSpan)

Initializes a new instance of a VirtualSnapshotSpan at snapshotSpan, with no virtual spaces.

VirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Initializes a new instance of a VirtualSnapshotSpan from the given VirtualSnapshotPoints.

VirtualSnapshotSpan(SnapshotSpan)

Initializes a new instance of a VirtualSnapshotSpan at snapshotSpan, with no virtual spaces.

public:
 VirtualSnapshotSpan(Microsoft::VisualStudio::Text::SnapshotSpan snapshotSpan);
 VirtualSnapshotSpan(Microsoft::VisualStudio::Text::SnapshotSpan snapshotSpan);
public VirtualSnapshotSpan (Microsoft.VisualStudio.Text.SnapshotSpan snapshotSpan);
new Microsoft.VisualStudio.Text.VirtualSnapshotSpan : Microsoft.VisualStudio.Text.SnapshotSpan -> Microsoft.VisualStudio.Text.VirtualSnapshotSpan
Public Sub New (snapshotSpan As SnapshotSpan)

Parameters

snapshotSpan
SnapshotSpan

A snapshot span.

Applies to

VirtualSnapshotSpan(VirtualSnapshotPoint, VirtualSnapshotPoint)

Initializes a new instance of a VirtualSnapshotSpan from the given VirtualSnapshotPoints.

public:
 VirtualSnapshotSpan(Microsoft::VisualStudio::Text::VirtualSnapshotPoint start, Microsoft::VisualStudio::Text::VirtualSnapshotPoint end);
public VirtualSnapshotSpan (Microsoft.VisualStudio.Text.VirtualSnapshotPoint start, Microsoft.VisualStudio.Text.VirtualSnapshotPoint end);
new Microsoft.VisualStudio.Text.VirtualSnapshotSpan : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Text.VirtualSnapshotPoint -> Microsoft.VisualStudio.Text.VirtualSnapshotSpan
Public Sub New (start As VirtualSnapshotPoint, end As VirtualSnapshotPoint)

Parameters

start
VirtualSnapshotPoint

The start point.

end
VirtualSnapshotPoint

The end point, which must be from the same ITextSnapshot as the start point.

Exceptions

The snapshot points belong to different ITextSnapshot objects.

The end point comes before the start point.

Applies to