Método IVsTextBufferCoordinator.MapSecondaryToPrimarySpan
Mapeia a posição especificada no buffer secundário para uma posição no buffer principal.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
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] A TextSpan objeto que descreve uma posição no buffer secundário.
ptsPrimary
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in, out] A TextSpan objeto que é preenchido com a posição correspondente no buffer principal.
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 MapSecondaryToPrimarySpan(
[in] TextSpan tsSecondary,
[out] TextSpan *ptsPrimary
);
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.