Share via


IProjectionEditResolver.FillInReplacementSizes Method

Definition

When text at projectionReplacementSpan is replaced in a projection buffer, determine how many characters of the insertionText are to be inserted into the source buffer at each source insertion point (which are the Start points of the sourceReplacementSpans).

public:
 void FillInReplacementSizes(Microsoft::VisualStudio::Text::SnapshotSpan projectionReplacementSpan, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Text::SnapshotSpan> ^ sourceReplacementSpans, System::String ^ insertionText, System::Collections::Generic::IList<int> ^ insertionSizes);
public void FillInReplacementSizes (Microsoft.VisualStudio.Text.SnapshotSpan projectionReplacementSpan, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotSpan> sourceReplacementSpans, string insertionText, System.Collections.Generic.IList<int> insertionSizes);
abstract member FillInReplacementSizes : Microsoft.VisualStudio.Text.SnapshotSpan * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotSpan> * string * System.Collections.Generic.IList<int> -> unit
Public Sub FillInReplacementSizes (projectionReplacementSpan As SnapshotSpan, sourceReplacementSpans As ReadOnlyCollection(Of SnapshotSpan), insertionText As String, insertionSizes As IList(Of Integer))

Parameters

projectionReplacementSpan
SnapshotSpan

The span of text that is to be replaced in the IProjectionBuffer.

sourceReplacementSpans
ReadOnlyCollection<SnapshotSpan>

The spans of text that are to be replaced in the source buffers (of length two or more).

insertionText
String

The text to be split among the replacement spans.

insertionSizes
IList<Int32>

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

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