Share via


IVsIntellisenseHost.SetContextSelection(Int32, Int32, Int32, Int32) Method

Definition

Sets the selection relative to the context buffer.

public:
 int SetContextSelection(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex);
public:
 int SetContextSelection(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex);
int SetContextSelection(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex);
public int SetContextSelection (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex);
abstract member SetContextSelection : int * int * int * int -> int
Public Function SetContextSelection (iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer) As Integer

Parameters

iStartLine
Int32

Sets the selection relative to the context buffer.

iStartIndex
Int32

Sets the selection relative to the context buffer.

iEndLine
Int32

Sets the selection relative to the context buffer.

iEndIndex
Int32

Sets the selection relative to the context buffer.

Returns

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

Remarks

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::SetContextSelection([in] long iStartLine, [in] long iStartIndex, [in] long iEndLine, [in] long iEndIndex);

Applies to