Método IVsTextSelectionAction.SetOrigin
Recuperar dados da seleção
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
Function SetOrigin ( _
pSelState As SELECTIONSTATE() _
) As Integer
int SetOrigin(
SELECTIONSTATE[] pSelState
)
int SetOrigin(
[InAttribute] array<SELECTIONSTATE>^ pSelState
)
abstract SetOrigin :
pSelState:SELECTIONSTATE[] -> int
function SetOrigin(
pSelState : SELECTIONSTATE[]
) : int
Parâmetros
pSelState
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[][out] Preenche o SELECTIONSTATE struct com os valores do estado de destino o texto selecionado.
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 IVsTextSelectionAction::SetOrigin(
[in] SELECTIONSTATE *pSelState
);
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.