Edit

Share via


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
AutoCompleteStringCollection
Implements

Constructors

AutoCompleteStringCollection()

Initializes a new instance of the AutoCompleteStringCollection class.

Properties

Count

Gets the number of items in the AutoCompleteStringCollection .

IsReadOnly

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

IsSynchronized

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

Item[Int32]

Gets or sets the element at the specified index.

SyncRoot

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

Methods

Add(String)

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)

Indicates whether the String exists within the collection.

CopyTo(String[], Int32)

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

Equals(Object)

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

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the AutoCompleteStringCollection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(String)

Obtains the position of the specified string within the collection.

Insert(Int32, String)

Inserts the string into a specific index in the collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnCollectionChanged(CollectionChangeEventArgs)

Raises the CollectionChanged event.

Remove(String)

Removes a string from the collection.

RemoveAt(Int32)

Removes the string at the specified index.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

CollectionChanged

Occurs when the collection changes.

Explicit Interface Implementations

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)

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

IList.Contains(Object)

Determines where the collection contains a specified string. For a description of this member, see Contains(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)

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

IList.IsFixedSize

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

IList.IsReadOnly

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

IList.Item[Int32]

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

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)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to