IVsTextBufferCoordinator.GetMappingOfPrimaryPosition-Methode
Ordnet die angegebene Position im Puffer an die Spanne im primären sekundären Puffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function GetMappingOfPrimaryPosition ( _
lPosition As Integer, _
<OutAttribute> ptsPrimary As TextSpan(), _
<OutAttribute> ptsSecondary As TextSpan() _
) As Integer
int GetMappingOfPrimaryPosition(
int lPosition,
TextSpan[] ptsPrimary,
TextSpan[] ptsSecondary
)
int GetMappingOfPrimaryPosition(
[InAttribute] int lPosition,
[OutAttribute] array<TextSpan>^ ptsPrimary,
[OutAttribute] array<TextSpan>^ ptsSecondary
)
abstract GetMappingOfPrimaryPosition :
lPosition:int *
ptsPrimary:TextSpan[] byref *
ptsSecondary:TextSpan[] byref -> int
function GetMappingOfPrimaryPosition(
lPosition : int,
ptsPrimary : TextSpan[],
ptsSecondary : TextSpan[]
) : int
Parameter
lPosition
Typ: Int32[in] Ein Zeichenoffset in den primären Puffer vom Anfang des Puffers.
ptsPrimary
Typ: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] Ein TextSpan-Objekt, das mit der Linie ausgefüllt ist, Offset paar im primären Puffer für die angegebene Position.
ptsSecondary
Typ: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] Ein TextSpan-Objekt, das mit der Linie ausgefüllt ist, Offset im Paar sekundären Puffer für die entsprechende primäre Position.
Rückgabewert
Typ: Int32
Bei Erfolg gibt S_OKzurück. andernfalls gibt einen Fehlercode zurück.
Hinweise
COM-Signatur
Von singlefileeditor.idl:
HRESULT GetMappingOfPrimaryPosition(
[in] long lPosition,
[out] TextSpan *ptsPrimary,
[out] TextSpan *ptsSecondary
);
.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.