AutoCompleteStringCollection Class

 

Contains a collection of strings to use for the auto-complete feature on certain Windows Forms controls.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System.Object
  System.Windows.Forms.AutoCompleteStringCollection

public class AutoCompleteStringCollection : IList, ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubmethodAutoCompleteStringCollection()

Initializes a new instance of the AutoCompleteStringCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in the AutoCompleteStringCollection .

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyIsSynchronized

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

System_CAPS_pubpropertyItem[Int32]

Gets or sets the element at the specified index.

System_CAPS_pubpropertySyncRoot

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

NameDescription
System_CAPS_pubmethodAdd(String)

Inserts a new String into the collection.

System_CAPS_pubmethodAddRange(String[])

Adds the elements of a String collection to the end.

System_CAPS_pubmethodClear()

Removes all strings from the collection.

System_CAPS_pubmethodContains(String)

Indicates whether the String exists within the collection.

System_CAPS_pubmethodCopyTo(String[], Int32)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the AutoCompleteStringCollection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(String)

Obtains the position of the specified string within the collection.

System_CAPS_pubmethodInsert(Int32, String)

Inserts the string into a specific index in the collection.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnCollectionChanged(CollectionChangeEventArgs)

Raises the CollectionChanged event.

System_CAPS_pubmethodRemove(String)

Removes a string from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the string at the specified index.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventCollectionChanged

Occurs when the collection changes.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Remove(Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsFixedSize

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsReadOnly

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item[Int32]

Gets the element at a specified index. For a description of this member, see IList.Item.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: