Método IVsTextBufferCoordinator.MapPrimaryToSecondarySpan
Mapeia a posição especificada no buffer principal para uma posição no buffer secundário.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
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] A TextSpan objeto que descreve uma posição no buffer principal.
ptsSecondary
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] A TextSpan objeto que é preenchido com a posição correspondente no buffer secundário.
Valor de retorno
Tipo: Int32
Se bem-sucedida, retorna S_OK; Caso contrário, retorna um código de erro.
Comentários
COM assinatura
De singlefileeditor.idl:
HRESULT MapPrimaryToSecondarySpan(
[in] TextSpan tsPrimary,
[out] TextSpan *ptsSecondary
);
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.