IProjectionEditResolver::FillInReplacementSizes Method (SnapshotSpan, ReadOnlyCollection<SnapshotSpan>^, String^, IList<Int32>^)
When text at the projection replacement span is replaced in a projection buffer, determine how many characters of the insertion text are to be inserted into the source buffer at each source insertion point (which are the Start points of the sourceReplacementSpans).
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
void FillInReplacementSizes( SnapshotSpan projectionReplacementSpan, ReadOnlyCollection<SnapshotSpan>^ sourceReplacementSpans, String^ insertionText, IList<int>^ insertionSizes )
Parameters
- projectionReplacementSpan
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The span of text that is to be replaced in the IProjectionBuffer.
- sourceReplacementSpans
-
Type:
System.Collections.ObjectModel::ReadOnlyCollection<SnapshotSpan>^
The spans of text that are to be replaced in the source buffers (of length two or more).
- insertionText
-
Type:
System::String^
The text to be split among the replacement spans.
- insertionSizes
-
Type:
System.Collections.Generic::IList<Int32>^
Filled in by the callee; the number of characters in the insertionText to be inserted into the corresponding source replacement span.
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.