Compartir a través de


IVsTextBufferCoordinator.GetMappingOfPrimaryPosition (Método)

Asigna la posición especificada en el búfer primario al intervalo en el búfer secundario.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop.8.0 (en Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxis

'Declaración
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

Parámetros

  • lPosition
    Tipo: Int32

    [in] Un desplazamiento de carácter en el búfer primario desde el inicio del búfer.

Valor devuelto

Tipo: Int32
Si finaliza correctamente, devuelve S_OK; de lo contrario, devuelve un código de error.

Comentarios

Prototipo COM

de singlefileeditor.idl:

HRESULT GetMappingOfPrimaryPosition(
   [in]  long      lPosition,
   [out] TextSpan *ptsPrimary,
   [out] TextSpan *ptsSecondary
);

Seguridad de .NET Framework

Vea también

Referencia

IVsTextBufferCoordinator Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)