AutoCompleteStringCollection AutoCompleteStringCollection AutoCompleteStringCollection AutoCompleteStringCollection Class

Definition

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

public ref class AutoCompleteStringCollection : System::Collections::IList
public class AutoCompleteStringCollection : System.Collections.IList
type AutoCompleteStringCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class AutoCompleteStringCollection
Implements IList
Inheritance
AutoCompleteStringCollectionAutoCompleteStringCollectionAutoCompleteStringCollectionAutoCompleteStringCollection
Implements

Constructors

AutoCompleteStringCollection() AutoCompleteStringCollection() AutoCompleteStringCollection() AutoCompleteStringCollection()

Initializes a new instance of the AutoCompleteStringCollection class.

Properties

Count Count Count Count

Gets the number of items in the AutoCompleteStringCollection .

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

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

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the element at the specified index.

SyncRoot SyncRoot SyncRoot SyncRoot

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

Methods

Add(String) Add(String) Add(String) Add(String)

Inserts a new String into the collection.

AddRange(String[]) AddRange(String[]) AddRange(String[]) AddRange(String[])

Adds the elements of a String collection to the end.

Clear() Clear() Clear() Clear()

Removes all strings from the collection.

Contains(String) Contains(String) Contains(String) Contains(String)

Indicates whether the String exists within the collection.

CopyTo(String[], Int32) CopyTo(String[], Int32) CopyTo(String[], Int32) CopyTo(String[], Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the AutoCompleteStringCollection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

Obtains the position of the specified string within the collection.

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

Inserts the string into a specific index in the collection.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnCollectionChanged(CollectionChangeEventArgs) OnCollectionChanged(CollectionChangeEventArgs) OnCollectionChanged(CollectionChangeEventArgs) OnCollectionChanged(CollectionChangeEventArgs)

Raises the CollectionChanged event.

Remove(String) Remove(String) Remove(String) Remove(String)

Removes a string from the collection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the string at the specified index.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

CollectionChanged CollectionChanged CollectionChanged CollectionChanged

Occurs when the collection changes.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.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 CopyTo(Array, Int32).

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

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

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

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

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

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

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

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

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

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

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

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

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to