Método IVsIntellisenseHost.GetContextSelection
Obtém a seleção em relação ao buffer de contexto.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
Function GetContextSelection ( _
<OutAttribute> pSelectionSpan As TextSpan() _
) As Integer
int GetContextSelection(
TextSpan[] pSelectionSpan
)
int GetContextSelection(
[OutAttribute] array<TextSpan>^ pSelectionSpan
)
abstract GetContextSelection :
pSelectionSpan:TextSpan[] byref -> int
function GetContextSelection(
pSelectionSpan : TextSpan[]
) : int
Parâmetros
pSelectionSpan
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][out] TextSpan interface que define a seleção de contexto.
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
C++
De singlefileeditor.idl:
HRESULT IVsIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);
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.