ITrackingPoint.GetPosition-Methode (ITextSnapshot)
Ruft die Position des Verfolgungspunkts im angegebenen ITextSnapshotab.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function GetPosition ( _
snapshot As ITextSnapshot _
) As Integer
int GetPosition(
ITextSnapshot snapshot
)
int GetPosition(
ITextSnapshot^ snapshot
)
abstract GetPosition :
snapshot:ITextSnapshot -> int
function GetPosition(
snapshot : ITextSnapshot
) : int
Parameter
snapshot
Typ: Microsoft.VisualStudio.Text.ITextSnapshotDie Momentaufnahme, der die Position zugeordnet werden soll.
Rückgabewert
Typ: Int32
Eine Position in der angegebenen Momentaufnahme.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | snapshot ist nullein Nullverweis (Nothing in Visual Basic). |
ArgumentException | snapshot ist keine Momentaufnahme TextBuffer. |
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.