IVsExpansionIntellisenseHost.GetSelection(Int32, Int32) Method

Definition

Retrieves the starting and ending positions of the current expansion selection.

public:
 int GetSelection([Runtime::InteropServices::Out] int % iStart, [Runtime::InteropServices::Out] int % iEnd);
int GetSelection([Runtime::InteropServices::Out] int & iStart, [Runtime::InteropServices::Out] int & iEnd);
public int GetSelection (out int iStart, out int iEnd);
abstract member GetSelection : int * int -> int
Public Function GetSelection (ByRef iStart As Integer, ByRef iEnd As Integer) As Integer

Parameters

iStart
Int32

[out] The start position of the expansion text span.

iEnd
Int32

[out] The end position of the expansion text span.

Returns

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

Remarks

C++

From singlefileeditor.idl:

HRESULT IVsExpansionIntellisenseHost::GetSelection([out] long *iStart, [out] long *iEnd);

Applies to