Partilhar via


Método IVsLayeredTextView.SetRelativeSelectionState

Define a seleção em relação a uma camada especificada.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
Function SetRelativeSelectionState ( _
    dwFlags As UInteger, _
    pReferenceLayer As IVsTextLayer, _
    pSelState As SELECTIONSTATE() _
) As Integer
int SetRelativeSelectionState(
    uint dwFlags,
    IVsTextLayer pReferenceLayer,
    SELECTIONSTATE[] pSelState
)
int SetRelativeSelectionState(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] IVsTextLayer^ pReferenceLayer, 
    [InAttribute] array<SELECTIONSTATE>^ pSelState
)
abstract SetRelativeSelectionState : 
        dwFlags:uint32 * 
        pReferenceLayer:IVsTextLayer * 
        pSelState:SELECTIONSTATE[] -> int
function SetRelativeSelectionState(
    dwFlags : uint, 
    pReferenceLayer : IVsTextLayer, 
    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 IVsLayeredTextView::SetRelativeSelectionState(
   [in] DWORD dwFlags,
   [in] IVsTextLayer *pReferenceLayer,
   [in] SELECTIONSTATE *pSelState
);

Segurança do .NET Framework

Consulte também

Referência

IVsLayeredTextView Interface

Namespace Microsoft.VisualStudio.TextManager.Interop