IProjectionEditResolver.FillInReplacementSizes Method
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).
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Sub FillInReplacementSizes ( _
projectionReplacementSpan As SnapshotSpan, _
sourceReplacementSpans As ReadOnlyCollection(Of SnapshotSpan), _
insertionText As String, _
insertionSizes As IList(Of Integer) _
)
void FillInReplacementSizes(
SnapshotSpan projectionReplacementSpan,
ReadOnlyCollection<SnapshotSpan> sourceReplacementSpans,
string insertionText,
IList<int> insertionSizes
)
void FillInReplacementSizes(
SnapshotSpan projectionReplacementSpan,
ReadOnlyCollection<SnapshotSpan>^ sourceReplacementSpans,
String^ insertionText,
IList<int>^ insertionSizes
)
abstract FillInReplacementSizes :
projectionReplacementSpan:SnapshotSpan *
sourceReplacementSpans:ReadOnlyCollection<SnapshotSpan> *
insertionText:string *
insertionSizes:IList<int> -> unit
function FillInReplacementSizes(
projectionReplacementSpan : SnapshotSpan,
sourceReplacementSpans : ReadOnlyCollection<SnapshotSpan>,
insertionText : String,
insertionSizes : IList<int>
)
Parameters
projectionReplacementSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe span of text that is to be replaced in the IProjectionBuffer.
sourceReplacementSpans
Type: ReadOnlyCollection<SnapshotSpan>The spans of text that are to be replaced in the source buffers (of length two or more).
insertionText
Type: StringThe text to be split among the replacement spans.
insertionSizes
Type: 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.
.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.