IProjectionEditResolver.FillInReplacementSizes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 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
要在替换范围中拆分的文本。
注解
此调用是在编辑正在进行的过程中进行的,因此在此调用期间任何更改投影缓冲区或源源的尝试都将失败。