Partilhar via


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

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

Consulte também

Referência

IVsTextSelectionAction Interface

Namespace Microsoft.VisualStudio.TextManager.Interop