Freigeben über


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.

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

Siehe auch

Referenz

IVsTextBufferCoordinator Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace