ITokenizedStringList 接口

将字符串转换为邻接和非重叠段的标记化表示形式。

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

语法

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

ITokenizedStringList 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection 中包含的元素数。 (继承自 ICollection<String>。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection 是否为只读。 (继承自 ICollection<String>。)
公共属性 Item 获取或设置位于指定索引处的元素。 (继承自 IList<String>。)
公共属性 Original 标记化的原始字符串。

页首

方法

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

页首

备注

此接口实现 IList ,以便可以使用 IDifferenceService,查找作为 IList 对象表示的两个序列之间的差异。

请参阅

参考

Microsoft.VisualStudio.Text.Differencing 命名空间