IVsLayeredTextView.GetRelativeSelectionState Method

Definition

Gets the selection relative to a specified layer.

public:
 int GetRelativeSelectionState(System::UInt32 dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, cli::array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
public:
 int GetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
int GetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pReferenceLayer, std::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> const & pSelState);
public int GetRelativeSelectionState (uint dwFlags, Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pReferenceLayer, Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] pSelState);
abstract member GetRelativeSelectionState : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] -> int
Public Function GetRelativeSelectionState (dwFlags As UInteger, pReferenceLayer As IVsTextLayer, pSelState As SELECTIONSTATE()) As Integer

Parameters

dwFlags
UInt32

[in] Selection state flags. Values are taken from RelativeSelectionStateFlags.

pReferenceLayer
IVsTextLayer

[in] Must be null unless rssRelativeLayer is specified. If null, specifies the top-most layer.

pSelState
SELECTIONSTATE[]

[out] The selection relative to the specified layer.

Returns

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  
);  

Applies to