共用方式為


IProjectionEditResolver.GetTypicalInsertionPosition Method

Definition

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

public:
 int GetTypicalInsertionPosition(Microsoft::VisualStudio::Text::SnapshotPoint projectionInsertionPoint, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Text::SnapshotPoint> ^ sourceInsertionPoints);
public int GetTypicalInsertionPosition (Microsoft.VisualStudio.Text.SnapshotPoint projectionInsertionPoint, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotPoint> sourceInsertionPoints);
abstract member GetTypicalInsertionPosition : Microsoft.VisualStudio.Text.SnapshotPoint * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotPoint> -> int
Public Function GetTypicalInsertionPosition (projectionInsertionPoint As SnapshotPoint, sourceInsertionPoints As ReadOnlyCollection(Of SnapshotPoint)) As Integer

Parameters

projectionInsertionPoint
SnapshotPoint

The insertion point in the IProjectionBuffer.

sourceInsertionPoints
ReadOnlyCollection<SnapshotPoint>

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

Returns

An integer between 0 and sourceInsertionPoints.Length - 1.

Applies to