VsTextManagerClass.NavigateToLineAndColumn 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在指定的缓冲区上查找或创建适当的视图,并将所选内容放在指定位置。
public:
virtual int NavigateToLineAndColumn(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, Guid % guidDocViewType, int iStartRow, int iStartIndex, int iEndRow, int iEndIndex) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::NavigateToLineAndColumn;
public virtual int NavigateToLineAndColumn (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, ref Guid guidDocViewType, int iStartRow, int iStartIndex, int iEndRow, int iEndIndex);
abstract member NavigateToLineAndColumn : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Guid * int * int * int * int -> int
override this.NavigateToLineAndColumn : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Guid * int * int * int * int -> int
Public Overridable Function NavigateToLineAndColumn (pBuffer As IVsTextBuffer, ByRef guidDocViewType As Guid, iStartRow As Integer, iStartIndex As Integer, iEndRow As Integer, iEndIndex As Integer) As Integer
参数
- pBuffer
- IVsTextBuffer
中指向接口的指针 IVsTextBuffer 。
- guidDocViewType
- Guid
中标识视图的 GUID。 此值应始终为 LOGVIEWID_TextView 。
- iStartRow
- Int32
中要查找的所选内容的起始行。
- iStartIndex
- Int32
中要查找的选择项的起始索引。
- iEndRow
- Int32
中要查找的选定内容的结束行。
- iEndIndex
- Int32
中要查找的选择的结束索引。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。