IProjectionEditResolver::FillInInsertionSizes Method (SnapshotPoint, ReadOnlyCollection<SnapshotPoint>^, String^, IList<Int32>^)

 

When text is inserted into the projection buffer at the projection insertion point, determine how many characters of the insertion text are to be inserted into the source buffer at each source insertion point.

Namespace:   Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

void FillInInsertionSizes(
	SnapshotPoint projectionInsertionPoint,
	ReadOnlyCollection<SnapshotPoint>^ sourceInsertionPoints,
	String^ insertionText,
	IList<int>^ insertionSizes
)

Parameters

projectionInsertionPoint
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The insertion point in the IProjectionBuffer.

sourceInsertionPoints
Type: System.Collections.ObjectModel::ReadOnlyCollection<SnapshotPoint>^

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

insertionText
Type: System::String^

The text to be split between the insertion points.

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 insertion point.

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.

If the 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.

Return to top
Show: