Partager via


ITokenizedStringList Interface

A tokenized representation of a string into abutting and non-overlapping segments.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Déclaration
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

The ITokenizedStringList type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<String>.)
Public property IsReadOnly Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<String>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<String>.)
Public property Original The original string that was tokenized.

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection<T>. (Inherited from ICollection<String>.)
Public method Clear Removes all items from the ICollection<T>. (Inherited from ICollection<String>.)
Public method Contains Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<String>.)
Public method CopyTo Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<String>.)
Public method GetElementInOriginal Maps the index of an element to its span in the original list.
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<String>.)
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method GetSpanInOriginal Maps a span of elements in this list to the span in the original list.
Public method IndexOf Determines the index of a specific item in the IList<T>. (Inherited from IList<String>.)
Public method Insert Inserts an item to the IList<T> at the specified index. (Inherited from IList<String>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<String>.)
Public method RemoveAt Removes the IList<T> item at the specified index. (Inherited from IList<String>.)

Top

Remarks

This interface implements IList<T> so that it can be used with IDifferenceService, which finds the differences between two sequences represented as IList<T> objects.

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace