共用方式為


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 命名空間