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
dwFlags
Tipo: UInt32[in] Sinalizadores de seleção. Valores são tirados de RelativeSelectionStateFlags.
pReferenceLayer
Tipo: Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer[in] Deve ser nulluma referência nula (Nothing no Visual Basic) , a menos que rssRelativeLayer é especificado.
pSelState
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[][in] Estado de seleção. Para obter mais informações, consulte: SELECTIONSTATE.
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
- 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.