IProjectionEditResolver.FillInReplacementSizes 方法

定义

projectionReplacementSpan 投影缓冲区中替换文本时,确定 insertionText 每个源插入点要插入到源缓冲区中的字符数, (是) 的起点 sourceReplacementSpans

public:
 void FillInReplacementSizes(Microsoft::VisualStudio::Text::SnapshotSpan projectionReplacementSpan, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Text::SnapshotSpan> ^ sourceReplacementSpans, System::String ^ insertionText, System::Collections::Generic::IList<int> ^ insertionSizes);
public void FillInReplacementSizes (Microsoft.VisualStudio.Text.SnapshotSpan projectionReplacementSpan, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotSpan> sourceReplacementSpans, string insertionText, System.Collections.Generic.IList<int> insertionSizes);
abstract member FillInReplacementSizes : Microsoft.VisualStudio.Text.SnapshotSpan * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.SnapshotSpan> * string * System.Collections.Generic.IList<int> -> unit
Public Sub FillInReplacementSizes (projectionReplacementSpan As SnapshotSpan, sourceReplacementSpans As ReadOnlyCollection(Of SnapshotSpan), insertionText As String, insertionSizes As IList(Of Integer))

参数

projectionReplacementSpan
SnapshotSpan

要在中替换的文本范围 IProjectionBuffer

sourceReplacementSpans
ReadOnlyCollection<SnapshotSpan>

要在源缓冲区中替换的文本范围 (长度为两个或多个) 。

insertionText
String

要在替换范围中拆分的文本。

insertionSizes
IList<Int32>

由被调用方填充; insertionText 要插入到相应源替换范围中的中的字符数。

注解

此调用是在编辑正在进行的过程中进行的,因此在此调用期间任何更改投影缓冲区或源源的尝试都将失败。

适用于