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

  • 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.

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

See Also

Reference

IProjectionEditResolver Interface

Microsoft.VisualStudio.Text.Projection Namespace