다음을 통해 공유


IProjectionEditResolver.GetTypicalInsertionPosition 메서드

프로젝션 버퍼의 위치가 소스 버퍼 경계에 있을 경우 일반 삽입을 받을 소스 삽입 지점을 확인합니다.

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

구문

‘선언
Function GetTypicalInsertionPosition ( _
    projectionInsertionPoint As SnapshotPoint, _
    sourceInsertionPoints As ReadOnlyCollection(Of SnapshotPoint) _
) As Integer
int GetTypicalInsertionPosition(
    SnapshotPoint projectionInsertionPoint,
    ReadOnlyCollection<SnapshotPoint> sourceInsertionPoints
)
int GetTypicalInsertionPosition(
    SnapshotPoint projectionInsertionPoint, 
    ReadOnlyCollection<SnapshotPoint>^ sourceInsertionPoints
)
abstract GetTypicalInsertionPosition : 
        projectionInsertionPoint:SnapshotPoint * 
        sourceInsertionPoints:ReadOnlyCollection<SnapshotPoint> -> int
function GetTypicalInsertionPosition(
    projectionInsertionPoint : SnapshotPoint, 
    sourceInsertionPoints : ReadOnlyCollection<SnapshotPoint>
) : int

매개 변수

  • sourceInsertionPoints
    형식: ReadOnlyCollection<SnapshotPoint>

    길이가 2 이상인 소스 버퍼의 삽입 지점 목록입니다.

반환 값

형식: Int32
0에서 sourceInsertionPoints.Length - 1 사이의 정수입니다.

.NET Framework 보안

참고 항목

참조

IProjectionEditResolver 인터페이스

Microsoft.VisualStudio.Text.Projection 네임스페이스