IVsTextSelectionAction.SetOrigin(SELECTIONSTATE[]) Method

Definition

Sets the origin of the text selection.

public:
 int SetOrigin(cli::array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
public:
 int SetOrigin(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
int SetOrigin(std::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> const & pSelState);
public int SetOrigin (Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] pSelState);
abstract member SetOrigin : Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] -> int
Public Function SetOrigin (pSelState As SELECTIONSTATE()) As Integer

Parameters

pSelState
SELECTIONSTATE[]

[out] Fills the SELECTIONSTATE struct with the state values of the selected text destination.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextSelectionAction::SetOrigin(  
    [in] SELECTIONSTATE *pSelState  
);  

Applies to