IVsTextStream.FindMarkerByPosition 方法

找到基于文本流中的位置的特定类型的标记。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function FindMarkerByPosition ( _
    iMarkerType As Integer, _
    iStartingPos As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppMarker As IVsTextStreamMarker _
) As Integer
int FindMarkerByPosition(
    int iMarkerType,
    int iStartingPos,
    uint dwFlags,
    out IVsTextStreamMarker ppMarker
)
int FindMarkerByPosition(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartingPos, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsTextStreamMarker^% ppMarker
)
abstract FindMarkerByPosition : 
        iMarkerType:int * 
        iStartingPos:int * 
        dwFlags:uint32 * 
        ppMarker:IVsTextStreamMarker byref -> int
function FindMarkerByPosition(
    iMarkerType : int, 
    iStartingPos : int, 
    dwFlags : uint, 
    ppMarker : IVsTextStreamMarker
) : int

参数

  • iMarkerType
    类型:Int32

    [in] 指定标记的类型查找。

  • iStartingPos
    类型:Int32

    [in] 在文本流的起始位置。 

  • dwFlags
    类型:UInt32

    [in] 指定方向搜索标记。 有关 dwFlags 值列表,请参见 FINDMARKERFLAGS

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextStream::FindMarkerByPosition(
   [in] long iMarkerType,
   [in] long iStartingPos,
   [in] DWORD dwFlags,
   [out] IVsTextStreamMarker **ppMarker
);

此方法搜索标记受使用 dwFlags 和 iMarkerType 参数指定的约束。

.NET Framework 安全性

请参阅

参考

IVsTextStream 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间