ToolboxCategory 類別

定義

已經進行分類之工具箱項目的集合。A collection of toolbox items that have been categorized.

public ref class ToolboxCategory sealed : System::Collections::IList, System::ComponentModel::INotifyPropertyChanged
public sealed class ToolboxCategory : System.Collections.IList, System.ComponentModel.INotifyPropertyChanged
type ToolboxCategory = class
    interface INotifyPropertyChanged
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ToolboxCategory
Implements IList, INotifyPropertyChanged
繼承
ToolboxCategory
實作

備註

ToolboxCategory 集合包含 ToolboxItemWrapper 型別的項目,您可以使用 AddRemove 方法,在集合的執行個體中加入和移除這些項目。The ToolboxCategory collection contains items of type ToolboxItemWrapper that are added and removed from an instance of the collection using the Add and Remove methods.

ToolboxCategory 類別會實作 INotifyPropertyChanged 介面。The ToolboxCategory class implements the INotifyPropertyChanged interface. 當變更屬性 (如 CategoryName 屬性),並使用方法 (如 AddRemove) 來變更集合的內容時,這會允許要儲存工具箱項目的集合提供通知。This allows the collection that is storing the toolbox items to provide notifications when properties like the CategoryName property are changed and methods like Add and Remove are used to change the contents of the collection.

建構函式

ToolboxCategory()

建立 ToolboxCategory 類別的執行個體。Creates an instance of the ToolboxCategory class.

ToolboxCategory(String)

使用指定的名稱建立 ToolboxCategory 類別的執行個體。Creates an instance of the ToolboxCategory class with a specified name.

屬性

CategoryName

取得或設定工具箱分類的名稱。Gets or sets the name of the toolbox category.

Item[Int32]

取得或設定位於指定之索引的工具。Gets or sets the tool at the specified index.

Tools

取得 ToolboxCategory 中的工具。Gets the tools in the ToolboxCategory.

方法

Add(ToolboxItemWrapper)

將指定的工具加入至工具箱分類集合結尾。Adds a specified tool to the end of the toolbox category collection.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
Remove(ToolboxItemWrapper)

從工具箱分類集合中移除第一個出現的指定工具。Removes the first occurrence of a specified tool from the toolbox category collection.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

PropertyChanged

當屬性值變更時發生。Occurs when a property value changes.

明確介面實作

ICollection.CopyTo(Array, Int32)

從目標 ToolboxCategory 的指定之索引開始,將整個 Array 集合複製至相容的一維 ArrayCopies the entire ToolboxCategory collection to a compatible one-dimensional Array, starting at the specified index of the target Array.

ICollection.Count

取得 ToolboxCategory 中所含之工具的數目。Gets the number of tools contained in the ToolboxCategory.

ICollection.IsSynchronized

取得值,這個值會指出 ToolboxCategory 的存取是否同步 (具備安全執行緒)。Gets a value that indicates whether access to the ToolboxCategory is synchronized (thread safe).

ICollection.SyncRoot

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

IEnumerable.GetEnumerator()

傳回逐一查看 ToolboxCategory 集合的列舉值。Returns an enumerator that iterates through the ToolboxCategory collection.

IList.Add(Object)

將工具加入至 ToolboxCategoryAdds a tool to the ToolboxCategory.

IList.Clear()

移除 ToolboxCategory 中的所有工具。Removes all the tools from the ToolboxCategory.

IList.Contains(Object)

判斷 ToolboxCategory 是否包含特定的工具。Determines whether the ToolboxCategory contains a specific tool.

IList.IndexOf(Object)

判斷 ToolboxCategory 中特定工具的索引。Determines the index of a specific tool in the ToolboxCategory.

IList.Insert(Int32, Object)

將工具插入 ToolboxCategory 之指定的索引。Inserts a tool into the ToolboxCategory at the specified index.

IList.IsFixedSize

取得值,指出 ToolboxCategory 是否有固定的大小。Gets a value that indicates whether the ToolboxCategory has a fixed size.

IList.IsReadOnly

取得值,這個值表示 ToolboxCategory 是否為唯讀。Gets a value that indicates whether the ToolboxCategory is read-only.

IList.Item[Int32]

取得或設定位於指定之索引的工具。Gets or sets the tool at the specified index.

IList.Remove(Object)

ToolboxCategory 移除第一個出現的特定工具。Removes the first occurrence of a specific tool from the ToolboxCategory.

IList.RemoveAt(Int32)

移除 ToolboxCategory 集合中位於指定之索引的工具。Removes the tool at the specified index of the ToolboxCategory collection.

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於