Skip to main content

SuggestionCollection Members

A collection of suggestions prepared for a misspelled word.

Constructors

Name Description
SuggestionCollection() Initializes a new instance of the SuggestionCollection class with the default settings.

Properties

Name Description
Count Gets the number of elements actually contained in the current collection.
Item[Int32] Gets or sets the element at the specified index.

Methods

Name Description
Add(SuggestionBase) Adds a SuggestionBase object to the end of the collection.
AddRange(IEnumerable<SuggestionBase>) Adds the elements of the specified collection to the end of the current collection.
BinarySearch(SuggestionBase, IComparer<SuggestionBase>) Searches a collection for a specific suggestion, using a binary search algorithm and the specified IComparer interface.
Clear() Clears the list of suggestions.
Contains(SuggestionBase) Determines whether an element is in the collection.
Contains(String) Determines whether a text string is in the collection of suggestions.
CopyTo(SuggestionBase[], Int32) Copies the elements of the SuggestionCollection to a SuggestionBase array, starting at a particular array index.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetEnumerator() Returns an enumerator that iterates through the current collection.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IndexOf(SuggestionBase) Determines the index of a specific item in the SuggestionCollection.
Insert(Int32, SuggestionBase) Inserts an item to the SuggestionCollection at the specified index.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Merge(SuggestionCollection) Appends elements that are not found within the collection to that collection.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(SuggestionBase) Removes the first occurrence of a suggestion from the collection.
RemoveAt(Int32) Removes the element at the specified index of the current collection.
Sort(IComparer<SuggestionBase>) Sorts the elements in the current collection using the specified comparer.
ToString() Returns a string that represents the current object. Inherited from Object.
ToStringArray() Converts a SuggestionCollection to an array of strings.
See Also