ITrackingSpan.GetStartPoint Method
Maps the start of the tracking span to the specified snapshot of its text buffer.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣告
Function GetStartPoint ( _
snapshot As ITextSnapshot _
) As SnapshotPoint
SnapshotPoint GetStartPoint(
ITextSnapshot snapshot
)
SnapshotPoint GetStartPoint(
ITextSnapshot^ snapshot
)
abstract GetStartPoint :
snapshot:ITextSnapshot -> SnapshotPoint
function GetStartPoint(
snapshot : ITextSnapshot
) : SnapshotPoint
Parameters
- snapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The snapshot to which to map the start point.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotPoint
A SnapshotPoint of the provided snapshot.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | snapshot is nulla null reference (Nothing in Visual Basic). |
ArgumentException | snapshot is not a snapshot of TextBuffer. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.