다음을 통해 공유


IMappingPoint.GetInsertionPoint 메서드

지점을 일치하는 ITextBuffer의 삽입 지점에 매핑합니다.

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

구문

‘선언
Function GetInsertionPoint ( _
    match As Predicate(Of ITextBuffer) _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> GetInsertionPoint(
    Predicate<ITextBuffer> match
)
Nullable<SnapshotPoint> GetInsertionPoint(
    Predicate<ITextBuffer^>^ match
)
abstract GetInsertionPoint : 
        match:Predicate<ITextBuffer> -> Nullable<SnapshotPoint> 
function GetInsertionPoint(
    match : Predicate<ITextBuffer>
) : Nullable<SnapshotPoint>

매개 변수

반환 값

형식: Nullable<SnapshotPoint>
A SnapshotPoint 일치 하는 버퍼 또는 nullNull 참조(Visual Basic의 경우 Nothing) 점 해당 버퍼에 표시 되지 않는 경우.

예외

예외 조건
ArgumentNullException

match가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

설명

일반적인 경우에는이 계산에 승인 호출자를 사용 하 여 투영 버퍼를 통해 맵을 match. 에 투영 매핑을 모호성 경우를 호출 하 여 처리 됩니다 GetTypicalInsertionPosition.

match일치 하는 항목을 찾을 때까지 각 텍스트 버퍼에서 버퍼 그래프에 대해 호출 됩니다. 이 버퍼 관심을 선택 하 고 조건자가 다시 호출 되지 않습니다. 일치 하는 항목이 발견 되 면 그 결과 nullNull 참조(Visual Basic의 경우 Nothing).

.NET Framework 보안

참고 항목

참조

IMappingPoint 인터페이스

Microsoft.VisualStudio.Text 네임스페이스