다음을 통해 공유


IVsTextLines.FindMarkerByLineIndex 메서드

행 인덱스를 기반으로 특정 유형의 마커를 찾습니다.

네임스페이스:  Microsoft.VisualStudio.TextManager.Interop
어셈블리:  Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)

구문

‘선언
Function FindMarkerByLineIndex ( _
    iMarkerType As Integer, _
    iStartingLine As Integer, _
    iStartingIndex As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppMarker As IVsTextLineMarker _
) As Integer
int FindMarkerByLineIndex(
    int iMarkerType,
    int iStartingLine,
    int iStartingIndex,
    uint dwFlags,
    out IVsTextLineMarker ppMarker
)
int FindMarkerByLineIndex(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartingLine, 
    [InAttribute] int iStartingIndex, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsTextLineMarker^% ppMarker
)
abstract FindMarkerByLineIndex : 
        iMarkerType:int * 
        iStartingLine:int * 
        iStartingIndex:int * 
        dwFlags:uint32 * 
        ppMarker:IVsTextLineMarker byref -> int
function FindMarkerByLineIndex(
    iMarkerType : int, 
    iStartingLine : int, 
    iStartingIndex : int, 
    dwFlags : uint, 
    ppMarker : IVsTextLineMarker
) : int

매개 변수

  • iMarkerType
    형식: Int32

    [in] 찾을 수 있는 표식 유형을 지정 합니다.

  • iStartingLine
    형식: Int32

    [in] 시작 줄입니다.

  • iStartingIndex
    형식: Int32

    [in] 시작 문자 줄 내의 인덱스입니다. 줄의 길이 보다 작거나 있어야 합니다.

  • dwFlags
    형식: UInt32

    [in] 마커를 검색 하는 방향을 지정 합니다. 목록에 대 한 dwFlags 값을 참조 하십시오. FINDMARKERFLAGS.

반환 값

형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.

설명

COM 시그니처

Textmgr.idl에서:

HRESULT IVsTextLines::FindMarkerByLineIndex(
   [in] long iMarkerType,
   [in] long iStartingLine,
   [in] CharIndex iStartingIndex,
   [in] DWORD dwFlags,
   [out] IVsTextLineMarker **ppMarker
);

이 메서드는 마커를 사용 하 여 지정 된 제한에 대 한 검색은 dwFlags 및 iMarkerType 매개 변수.

.NET Framework 보안

참고 항목

참조

IVsTextLines 인터페이스

Microsoft.VisualStudio.TextManager.Interop 네임스페이스