Share 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

'Declaration
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. (Inherited from ICollection<String>.)
Public property IsReadOnly Gets a value indicating whether the ICollection 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. (Inherited from ICollection<String>.)
Public method Clear Removes all items from the ICollection. (Inherited from ICollection<String>.)
Public method Contains Determines whether the ICollection contains a specific value. (Inherited from ICollection<String>.)
Public method CopyTo Copies the elements of the ICollection 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 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. (Inherited from IList<String>.)
Public method Insert Inserts an item to the IList at the specified index. (Inherited from IList<String>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<String>.)
Public method RemoveAt Removes the IList item at the specified index. (Inherited from IList<String>.)

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace