IVsTextLines.FindMarkerByLineIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于行索引查找给定类型的标记。
public:
int FindMarkerByLineIndex(int iMarkerType, int iStartingLine, int iStartingIndex, System::UInt32 dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLineMarker ^ % ppMarker);
public:
int FindMarkerByLineIndex(int iMarkerType, int iStartingLine, int iStartingIndex, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLineMarker ^ & ppMarker);
int FindMarkerByLineIndex(int iMarkerType, int iStartingLine, int iStartingIndex, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLineMarker const & & ppMarker);
public int FindMarkerByLineIndex (int iMarkerType, int iStartingLine, int iStartingIndex, uint dwFlags, out Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker ppMarker);
abstract member FindMarkerByLineIndex : int * int * int * uint32 * IVsTextLineMarker -> int
Public Function FindMarkerByLineIndex (iMarkerType As Integer, iStartingLine As Integer, iStartingIndex As Integer, dwFlags As UInteger, ByRef ppMarker As IVsTextLineMarker) As Integer
参数
- iMarkerType
- Int32
中指定要查找的标记的类型。
- iStartingLine
- Int32
中起始行。
- iStartingIndex
- Int32
中行中的起始字符索引。 必须小于或等于行的长度。
- dwFlags
- UInt32
中指定要搜索标记的方向。 有关值的列表 dwFlags ,请参阅 FINDMARKERFLAGS 。
- ppMarker
- IVsTextLineMarker
弄指向接口的指针 IVsTextLineMarker (即文本标记) 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsTextLines::FindMarkerByLineIndex(
[in] long iMarkerType,
[in] long iStartingLine,
[in] CharIndex iStartingIndex,
[in] DWORD dwFlags,
[out] IVsTextLineMarker **ppMarker
);
此方法搜索受使用和参数指定的约束的标记 dwFlags iMarkerType 。