다음을 통해 공유


IVsLayeredTextView.GetRelativeSelectionState 메서드

지정 된 레이어를 기준으로 선택 영역을 가져옵니다.

네임스페이스:  Microsoft.VisualStudio.TextManager.Interop
어셈블리:  Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)

구문

‘선언
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

매개 변수

반환 값

형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.

설명

COM 시그니처

Textmgr.idl에서:

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

.NET Framework 보안

참고 항목

참조

IVsLayeredTextView 인터페이스

Microsoft.VisualStudio.TextManager.Interop 네임스페이스