Freigeben über


IVsLayeredTextView.SetRelativeSelectionState Method

Sets the selection relative to a specified layer.

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

Syntax

'Declaration
Function SetRelativeSelectionState ( _
    dwFlags As UInteger, _
    pReferenceLayer As IVsTextLayer, _
    pSelState As SELECTIONSTATE() _
) As Integer
'Usage
Dim instance As IVsLayeredTextView
Dim dwFlags As UInteger
Dim pReferenceLayer As IVsTextLayer
Dim pSelState As SELECTIONSTATE()
Dim returnValue As Integer

returnValue = instance.SetRelativeSelectionState(dwFlags, _
    pReferenceLayer, pSelState)
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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsLayeredTextView Interface

IVsLayeredTextView Members

Microsoft.VisualStudio.TextManager.Interop Namespace