Partager via


IVsIntellisenseHost.SetSubjectSelection(Int32, Int32) Method

Definition

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

public:
 int SetSubjectSelection(int iAnchorIndex, int iEndIndex);
public:
 int SetSubjectSelection(int iAnchorIndex, int iEndIndex);
int SetSubjectSelection(int iAnchorIndex, int iEndIndex);
public int SetSubjectSelection (int iAnchorIndex, int iEndIndex);
abstract member SetSubjectSelection : int * int -> int
Public Function SetSubjectSelection (iAnchorIndex As Integer, iEndIndex As Integer) As Integer

Parameters

iAnchorIndex
Int32

[in] Start index number for the text span defining the subject text selection.

iEndIndex
Int32

[in] End index number for the text span defining 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::SetSubjectSelection([in] long iAnchorIndex, [in] long iEndIndex);

Applies to