AutoCompleteStringCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
| Name | Description |
|---|---|
| AutoCompleteStringCollection() |
Initializes a new instance of the AutoCompleteStringCollection class. |
Properties
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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. |
| GetEnumerator() |
Returns an enumerator that iterates through the AutoCompleteStringCollection. |
| 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. |
| OnCollectionChanged(CollectionChangeEventArgs) |
Raises the CollectionChanged event. |
| Remove(String) |
Removes a string from the collection. |
| RemoveAt(Int32) |
Removes the string at the specified index. |
Events
| Name | Description |
|---|---|
| CollectionChanged |
Occurs when the collection changes. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| 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). |