IVsLayeredTextView.GetRelativeSelectionState Method
Gets the selection relative to a specified layer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
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
Parameters
- dwFlags
Type: System.UInt32
[in] Selection state flags. Values are taken from RelativeSelectionStateFlags.
- pReferenceLayer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer
[in] Must be nulla null reference (Nothing in Visual Basic) unless rssRelativeLayer is specified. If nulla null reference (Nothing in Visual Basic), specifies the top-most layer.
- pSelState
Type: array<Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[]
[out] The selection relative to the specified layer.
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::GetRelativeSelectionState(
[in] DWORD dwFlags,
[in] IVsTextLayer *pReferenceLayer,
[out] SELECTIONSTATE *pSelState
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.