IVsTextSelectionAction.SetOrigin(SELECTIONSTATE[]) 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 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
);