Compartir a través de


IProjectionEditResolver.GetTypicalInsertionPosition Method

When a position in the projection buffer lies on a source buffer seam, determine which source insertion point would receive a typical insertion.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
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

Parameters

  • sourceInsertionPoints
    Type: ReadOnlyCollection<SnapshotPoint>

    The list of insertion points in the source buffers (of length two or more).

Return Value

Type: Int32
An integer between 0 and sourceInsertionPoints.Length - 1.

.NET Framework Security

See Also

Reference

IProjectionEditResolver Interface

Microsoft.VisualStudio.Text.Projection Namespace