AutoCompleteStringCollection AutoCompleteStringCollection AutoCompleteStringCollection AutoCompleteStringCollection Class

定義

包含要用於特定 Windows Forms 控制項之自動完成功能的字串集合。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
繼承
AutoCompleteStringCollectionAutoCompleteStringCollectionAutoCompleteStringCollectionAutoCompleteStringCollection
實作

建構函式

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

初始化 AutoCompleteStringCollection 類別的新執行個體。Initializes a new instance of the AutoCompleteStringCollection class.

屬性

Count Count Count Count

取得 AutoCompleteStringCollection 中的項目數目。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

取得值,這個值表示對 AutoCompleteStringCollection 的存取是否同步 (安全執行緒)。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

取得可用以同步存取 AutoCompleteStringCollection 的物件。Gets an object that can be used to synchronize access to the AutoCompleteStringCollection.

方法

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

將新 String 插入集合。Inserts a new String into the collection.

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

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)

指出 String 是否存在於集合中。Indicates whether the String exists within the collection.

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

從指定位置開始,複製 String 物件的陣列至集合。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()

傳回在 AutoCompleteStringCollection 中逐一查看的列舉值。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()

取得目前執行個體的 TypeGets 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()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

引發 CollectionChanged 事件。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)

事件

CollectionChanged CollectionChanged CollectionChanged CollectionChanged

發生於集合變更時。Occurs when the collection changes.

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

從特定的 Array 索引開始,複製集合字串至 ArrayCopies the strings of the collection to an Array, starting at a particular Array index. 如需這個成員的說明,請參閱 CopyTo(Array, Int32)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. 如需這個成員的說明,請參閱 Add(Object)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. 如需這個成員的說明,請參閱 Contains(Object)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. 如需這個成員的說明,請參閱 IndexOf(Object)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. 如需這個成員的說明,請參閱 Insert(Int32, Object)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. 如需這個成員的說明,請參閱 IsFixedSizeFor 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. 如需這個成員的說明,請參閱 IsReadOnlyFor 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. 如需這個成員的說明,請參閱 Item[Int32]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. 如需這個成員的說明,請參閱 Remove(Object)For a description of this member, see Remove(Object).

Extension Methods

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

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

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

根據指定的型別來篩選 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)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於