Condividi tramite


Metodo IVsLayeredTextView.GetRelativeSelectionState

Ottiene la selezione relativo a un determinato livello.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Sintassi

'Dichiarazione
Function GetRelativeSelectionState ( _
    dwFlags As UInteger, _
    pReferenceLayer As IVsTextLayer, _
    <OutAttribute> pSelState As SELECTIONSTATE() _
) As Integer
int GetRelativeSelectionState(
    uint dwFlags,
    IVsTextLayer pReferenceLayer,
    SELECTIONSTATE[] pSelState
)
int GetRelativeSelectionState(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] IVsTextLayer^ pReferenceLayer, 
    [OutAttribute] array<SELECTIONSTATE>^ pSelState
)
abstract GetRelativeSelectionState : 
        dwFlags:uint32 * 
        pReferenceLayer:IVsTextLayer * 
        pSelState:SELECTIONSTATE[] byref -> int
function GetRelativeSelectionState(
    dwFlags : uint, 
    pReferenceLayer : IVsTextLayer, 
    pSelState : SELECTIONSTATE[]
) : int

Parametri

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textmgr.idl:

HRESULT IVsLayeredTextView::GetRelativeSelectionState(
   [in] DWORD dwFlags,
   [in] IVsTextLayer *pReferenceLayer,
   [out] SELECTIONSTATE *pSelState
);

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsLayeredTextView Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop