Método IVsTextView.EnsureSpanVisible
Garante que o texto está em exibição, ambos verticalmente e horizontalmente.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
Function EnsureSpanVisible ( _
span As TextSpan _
) As Integer
int EnsureSpanVisible(
TextSpan span
)
int EnsureSpanVisible(
[InAttribute] TextSpan span
)
abstract EnsureSpanVisible :
span:TextSpan -> int
function EnsureSpanVisible(
span : TextSpan
) : int
Parâmetros
span
Tipo: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] Especifica o trecho de texto para centralizar. Para obter mais informações, consulte TextSpan.
Valor de retorno
Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De textmgr.idl:
HRESULT IVsTextView::EnsureSpanVisible(
[in] TextSpan span
);
Use esse método para exibir um trecho de texto no modo de exibição.
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.