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)

public interface ITokenizedStringList : IList<string>, 
	ICollection<string>, IEnumerable<string>, IEnumerable

The ITokenizedStringList type exposes the following members.

  NameDescription
Public propertyCountGets the number of elements contained in the ICollection<T>. (Inherited from ICollection<String>.)
Public propertyIsReadOnlyGets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<String>.)
Public propertyItemGets or sets the element at the specified index. (Inherited from IList<String>.)
Public propertyOriginalThe original string that was tokenized.
Top

  NameDescription
Public methodAddAdds an item to the ICollection<T>. (Inherited from ICollection<String>.)
Public methodClearRemoves all items from the ICollection<T>. (Inherited from ICollection<String>.)
Public methodContainsDetermines whether the ICollection<T> contains a specific value. (Inherited from ICollection<String>.)
Public methodCopyToCopies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<String>.)
Public methodGetElementInOriginalMaps the index of an element to its span in the original list.
Public methodGetEnumeratorReturns an enumerator that iterates through the collection. (Inherited from IEnumerable<String>.)
Public methodGetSpanInOriginalMaps a span of elements in this list to the span in the original list.
Public methodIndexOfDetermines the index of a specific item in the IList<T>. (Inherited from IList<String>.)
Public methodInsertInserts an item to the IList<T> at the specified index. (Inherited from IList<String>.)
Public methodRemoveRemoves the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<String>.)
Public methodRemoveAtRemoves the IList<T> item at the specified index. (Inherited from IList<String>.)
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft