IVsLayeredTextView.SetRelativeSelectionState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the selection relative to a specified layer.
public:
int SetRelativeSelectionState(System::UInt32 dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, cli::array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
public:
int SetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
int SetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pReferenceLayer, std::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> const & pSelState);
public int SetRelativeSelectionState (uint dwFlags, Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pReferenceLayer, Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] pSelState);
abstract member SetRelativeSelectionState : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] -> int
Public Function SetRelativeSelectionState (dwFlags As UInteger, pReferenceLayer As IVsTextLayer, pSelState As SELECTIONSTATE()) As Integer
Parameters
- dwFlags
- UInt32
[in] Selection flags. Values are taken from RelativeSelectionStateFlags.
- pReferenceLayer
- IVsTextLayer
[in] Must be null unless rssRelativeLayer is specified
- pSelState
- SELECTIONSTATE[]
[in] Selection state. For more information see SELECTIONSTATE.
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::SetRelativeSelectionState(
[in] DWORD dwFlags,
[in] IVsTextLayer *pReferenceLayer,
[in] SELECTIONSTATE *pSelState
);