INormalizedTextChangeCollection 接口

ITextChange 对象的规范化列表。 更改按位置的升序顺序进行排序,并将邻接更改和重叠更改合并为一个更改。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
Public Interface INormalizedTextChangeCollection _
    Inherits IList(Of ITextChange), ICollection(Of ITextChange),  _
    IEnumerable(Of ITextChange), IEnumerable
public interface INormalizedTextChangeCollection : IList<ITextChange>, 
    ICollection<ITextChange>, IEnumerable<ITextChange>, IEnumerable
public interface class INormalizedTextChangeCollection : IList<ITextChange^>, 
    ICollection<ITextChange^>, IEnumerable<ITextChange^>, IEnumerable
type INormalizedTextChangeCollection =  
    interface 
        interface IList<ITextChange>
        interface ICollection<ITextChange>
        interface IEnumerable<ITextChange>
        interface IEnumerable 
    end
public interface INormalizedTextChangeCollection extends IList<ITextChange>, ICollection<ITextChange>, IEnumerable<ITextChange>, IEnumerable

INormalizedTextChangeCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection 中包含的元素数。 (继承自 ICollection<ITextChange>。)
公共属性 IncludesLineChanges 确定此列表中的任何 ITextChange 对象是否具有非零 LineCountDelta
公共属性 IsReadOnly 获取一个值,该值指示 ICollection 是否为只读。 (继承自 ICollection<ITextChange>。)
公共属性 Item 获取或设置位于指定索引处的元素。 (继承自 IList<ITextChange>。)

页首

方法

  名称 说明
公共方法 Add 将某项添加到 ICollection 中。 (继承自 ICollection<ITextChange>。)
公共方法 Clear ICollection 中移除所有项。 (继承自 ICollection<ITextChange>。)
公共方法 Contains 确定 ICollection 是否包含特定值。 (继承自 ICollection<ITextChange>。)
公共方法 CopyTo 从特定的 Array 索引开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 ICollection<ITextChange>。)
公共方法 GetEnumerator 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<ITextChange>。)
公共方法 IndexOf 确定 IList 中特定项的索引。 (继承自 IList<ITextChange>。)
公共方法 Insert 将一个项插入指定索引处的 IList。 (继承自 IList<ITextChange>。)
公共方法 Remove ICollection 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITextChange>。)
公共方法 RemoveAt 移除指定索引处的 IList 项。 (继承自 IList<ITextChange>。)

页首

备注

INormalizedTextChangeCollection 对象是不可变的。

此集合用于 Changes

请参阅

参考

Microsoft.VisualStudio.Text 命名空间