IVsTextBufferCoordinator.MapPrimaryToSecondarySpan (Método)
asigna la posición especificada en el búfer primario a una posición 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 MapPrimaryToSecondarySpan ( _
tsPrimary As TextSpan, _
<OutAttribute> ptsSecondary As TextSpan() _
) As Integer
int MapPrimaryToSecondarySpan(
TextSpan tsPrimary,
TextSpan[] ptsSecondary
)
int MapPrimaryToSecondarySpan(
[InAttribute] TextSpan tsPrimary,
[OutAttribute] array<TextSpan>^ ptsSecondary
)
abstract MapPrimaryToSecondarySpan :
tsPrimary:TextSpan *
ptsSecondary:TextSpan[] byref -> int
function MapPrimaryToSecondarySpan(
tsPrimary : TextSpan,
ptsSecondary : TextSpan[]
) : int
Parámetros
tsPrimary
Tipo: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] un objeto de TextSpan que describe una posición en el búfer primario.
ptsSecondary
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] Un objeto de TextSpan se completa con la posición correspondiente del búfer secundario.
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 MapPrimaryToSecondarySpan(
[in] TextSpan tsPrimary,
[out] TextSpan *ptsSecondary
);
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
IVsTextBufferCoordinator Interfaz
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)