Compartir a través de


IVsIntellisenseHost.GetSubjectSelection(Int32, Int32) Method

Definition

Gets the selection relative to the text upon which IntelliSense operates.

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

Parameters

piAnchorIndex
Int32

[out] Starting index of the subject text selection.

piEndIndex
Int32

[out] Ending index of the subject text selection.

Returns

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

Remarks

The subject text is considered to be the contents of the context buffer if GetHostFlags()_returns flags containing IHF_NOSEPARATESUBJECT and this method should return E_NOTIMPL.

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetSubjectSelection([out] long *piAnchorIndex, [out] long *piEndIndex);

Applies to