IVsTextSelectionAction::GetOrigin Method (array<SELECTIONSTATE>^)

 

Gets the origin of the text selection.

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

int GetOrigin(
	array<SELECTIONSTATE>^ pSelState
)

Parameters

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

[out] Line and column of the origin of text selection. Values are in the SELECTIONSTATE struct.

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 IVsTextSelectionAction::GetOrigin(
   [out] SELECTIONSTATE *pSelState);

Return to top
Show: