IProjectionEditResolver.FillInInsertionSizes Method
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)
Syntax
'Declaration
Sub FillInInsertionSizes ( _
projectionInsertionPoint As SnapshotPoint, _
sourceInsertionPoints As ReadOnlyCollection(Of SnapshotPoint), _
insertionText As String, _
insertionSizes As IList(Of Integer) _
)
void FillInInsertionSizes(
SnapshotPoint projectionInsertionPoint,
ReadOnlyCollection<SnapshotPoint> sourceInsertionPoints,
string insertionText,
IList<int> insertionSizes
)
void FillInInsertionSizes(
SnapshotPoint projectionInsertionPoint,
ReadOnlyCollection<SnapshotPoint>^ sourceInsertionPoints,
String^ insertionText,
IList<int>^ insertionSizes
)
abstract FillInInsertionSizes :
projectionInsertionPoint:SnapshotPoint *
sourceInsertionPoints:ReadOnlyCollection<SnapshotPoint> *
insertionText:string *
insertionSizes:IList<int> -> unit
function FillInInsertionSizes(
projectionInsertionPoint : SnapshotPoint,
sourceInsertionPoints : ReadOnlyCollection<SnapshotPoint>,
insertionText : String,
insertionSizes : IList<int>
)
Parameters
projectionInsertionPoint
Type: Microsoft.VisualStudio.Text.SnapshotPointThe insertion point in the IProjectionBuffer.
sourceInsertionPoints
Type: ReadOnlyCollection<SnapshotPoint>The list of insertion points in the source buffers (of length two or more).
insertionText
Type: StringThe text to be split between the insertion points.
insertionSizes
Type: 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.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.