IProjectionEditResolver.GetTypicalInsertionPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.