System.Windows.Forms.AutoCompleteStringCollection Members

The members of System.Windows.Forms.AutoCompleteStringCollection are listed below.

See Also: Inherited members from System.Object

Public Constructors

Public Properties

[read-only]
Countint.

Gets the number of items in the System.Windows.Forms.AutoCompleteStringCollection .

[read-only]
IsReadOnlybool.

Gets a value indicating whether the contents of the collection are read-only.

[read-only]
IsSynchronizedbool.

Gets a value indicating whether access to the System.Windows.Forms.AutoCompleteStringCollection is synchronized (thread safe).

default property
Item(int)string. Documentation for this section has not yet been entered.
[read-only]
SyncRootobject.

Gets an object that can be used to synchronize access to the System.Windows.Forms.AutoCompleteStringCollection.

Public Methods

Add(string) : int

Inserts a new string into the collection.

AddRange(string[])

Adds the elements of a string collection to the end.

Clear()

Removes all strings from the collection.

Contains(string) : bool

Indicates whether the string exists within the collection.

CopyTo(string[], int)

Copies an array of string objects into the collection, starting at the specified position.

GetEnumerator() : IEnumerator

Returns an enumerator that iterates through the System.Windows.Forms.AutoCompleteStringCollection.

IndexOf(string) : int

Obtains the position of the specified string within the collection.

Insert(int, string)

Inserts the string into a specific index in the collection.

Remove(string)

Removes a string from the collection.

RemoveAt(int)

Removes the string at the specified index.

Protected Methods

Public Events

CollectionChanged

Occurs when the collection changes.

Explicitly Implemented Interface Members

IList.Add

Adds a string to the collection. For a description of this member, see IList.Add(object).

IList.Contains

Determines where the collection contains a specified string. For a description of this member, see IList.Contains(object).

ICollection.CopyTo

Copies the strings of the collection to an Array, starting at a particular Array index. For a description of this member, see ICollection.CopyTo(Array, int).

IList.IndexOf

Determines the index of a specified string in the collection. For a description of this member, see IList.IndexOf(object).

IList.Insert

Inserts an item to the collection at the specified index. For a description of this member, see IList.Insert(int, object).

[read-only]
IList.IsFixedSizebool.

Gets a value indicating whether the collection has a fixed size. For a description of this member, see IList.IsFixedSize.

[read-only]
IList.IsReadOnlybool.

Gets a value indicating whether the collection is read-only. For a description of this member, see IList.IsReadOnly.

IList.Itemobject. Documentation for this section has not yet been entered.
IList.Remove

Removes the first occurrence of a specific string from the collection. For a description of this member, see IList.Remove(object).