Udostępnij za pośrednictwem


IProjectionEditResolver.FillInInsertionSizes Method

Definition

When text is inserted into the projection buffer at projectionInsertionPoint, determine how many characters of the insertionText are to be inserted into the source buffer at each source insertion point. If length of the sourceInsertionPoints is greater than two, all but the first and last snapshot point will denote the boundary of an empty source span.

public:
 void FillInInsertionSizes(Microsoft::VisualStudio::Text::SnapshotPoint projectionInsertionPoint, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Text::SnapshotPoint> ^ sourceInsertionPoints, System::String ^ insertionText, System::Collections::Generic::IList<int> ^ insertionSizes);
public void FillInInsertionSizes (Microsoft.VisualStudio.Text.SnapshotPoint projectionInsertionPoint, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotPoint> sourceInsertionPoints, string insertionText, System.Collections.Generic.IList<int> insertionSizes);
abstract member FillInInsertionSizes : Microsoft.VisualStudio.Text.SnapshotPoint * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotPoint> * string * System.Collections.Generic.IList<int> -> unit
Public Sub FillInInsertionSizes (projectionInsertionPoint As SnapshotPoint, sourceInsertionPoints As ReadOnlyCollection(Of SnapshotPoint), insertionText As String, insertionSizes As IList(Of 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).

insertionText
String

The text to be split between the insertion points.

insertionSizes
IList<Int32>

Filled in by the callee; the number of characters in the insertionText to be inserted into the corresponding source insertion point.

Remarks

This call is made while an edit is in progress, so any attempt to change the projection buffer or its sources during this call will fail.

Applies to