IVsIntellisenseHost.SetContextSelection(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置相对于上下文缓冲区的选定内容。
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
参数
- iStartLine
- Int32
设置相对于上下文缓冲区的选定内容。
- iStartIndex
- Int32
设置相对于上下文缓冲区的选定内容。
- iEndLine
- Int32
设置相对于上下文缓冲区的选定内容。
- iEndIndex
- Int32
设置相对于上下文缓冲区的选定内容。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
C++
从 singlefileeditor:
HRESULT IVsIntellisenseHost::SetContextSelection([in] long iStartLine, [in] long iStartIndex, [in] long iEndLine, [in] long iEndIndex);