VirtualSnapshotSpan Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VirtualSnapshotSpan(SnapshotSpan) |
Initializes a new instance of a VirtualSnapshotSpan at |
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.
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.