IProjectionEditResolver::GetTypicalInsertionPosition Method (SnapshotPoint, ReadOnlyCollection<SnapshotPoint>^)

 

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)

int GetTypicalInsertionPosition(
	SnapshotPoint projectionInsertionPoint,
	ReadOnlyCollection<SnapshotPoint>^ sourceInsertionPoints
)

Parameters

projectionInsertionPoint
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The insertion point in the IProjectionBuffer.

sourceInsertionPoints
Type: System.Collections.ObjectModel::ReadOnlyCollection<SnapshotPoint>^

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

Return Value

Type: System::Int32

An integer between 0 and sourceInsertionPoints.Length - 1.

Return to top
Show: