IVsTextBufferCoordinator.MapSecondaryToPrimarySpan (Método)
asigna la posición especificada en el búfer secundario a una posición en el búfer primario.
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 MapSecondaryToPrimarySpan ( _
tsSecondary As TextSpan, _
<OutAttribute> ptsPrimary As TextSpan() _
) As Integer
int MapSecondaryToPrimarySpan(
TextSpan tsSecondary,
TextSpan[] ptsPrimary
)
int MapSecondaryToPrimarySpan(
[InAttribute] TextSpan tsSecondary,
[OutAttribute] array<TextSpan>^ ptsPrimary
)
abstract MapSecondaryToPrimarySpan :
tsSecondary:TextSpan *
ptsPrimary:TextSpan[] byref -> int
function MapSecondaryToPrimarySpan(
tsSecondary : TextSpan,
ptsPrimary : TextSpan[]
) : int
Parámetros
tsSecondary
Tipo: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] un objeto de TextSpan que describe una posición en el búfer secundario.
ptsPrimary
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] Un objeto de TextSpan se completa con la posición correspondiente del búfer primario.
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 MapSecondaryToPrimarySpan(
[in] TextSpan tsSecondary,
[out] TextSpan *ptsPrimary
);
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)