IVsLayeredTextView::GetRelativeSelectionState Method (UInt32, IVsTextLayer^, array<SELECTIONSTATE>^)
Visual Studio 2015
Gets the selection relative to a specified layer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetRelativeSelectionState( unsigned int dwFlags, IVsTextLayer^ pReferenceLayer, array<SELECTIONSTATE>^ pSelState )
Parameters
- dwFlags
-
Type:
System::UInt32
[in] Selection state flags. Values are taken from RelativeSelectionStateFlags.
- pReferenceLayer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLayer^
[in] Must be null unless rssRelativeLayer is specified. If null, 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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsLayeredTextView::GetRelativeSelectionState( [in] DWORD dwFlags, [in] IVsTextLayer *pReferenceLayer, [out] SELECTIONSTATE *pSelState );
Show: