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