IVsLayeredTextView::SetRelativeSelectionState Method (UInt32, IVsTextLayer^, array<SELECTIONSTATE>^)

 

Sets the selection relative to a specified layer.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int SetRelativeSelectionState(
	unsigned int dwFlags,
	IVsTextLayer^ pReferenceLayer,
	array<SELECTIONSTATE>^ pSelState
)

Parameters

dwFlags
Type: System::UInt32

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

pReferenceLayer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLayer^

[in] Must be null unless rssRelativeLayer is specified

pSelState
Type: array<Microsoft.VisualStudio.TextManager.Interop::SELECTIONSTATE>^

[in] Selection state. For more information see SELECTIONSTATE.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsLayeredTextView::SetRelativeSelectionState(
   [in] DWORD dwFlags,
   [in] IVsTextLayer *pReferenceLayer,
   [in] SELECTIONSTATE *pSelState
);
Return to top
Show: