Freigeben über


IVsLayeredTextView.SetRelativeSelectionState Method

Definition

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

Applies to