ToolboxCategory ToolboxCategory ToolboxCategory ToolboxCategory Class

定义

一个已分类的工具箱项的集合。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
继承
ToolboxCategoryToolboxCategoryToolboxCategoryToolboxCategory
实现

注解

ToolboxCategory 集合包含类型为 ToolboxItemWrapper 的项,这些项是使用 Add 方法添加到集合的实例中的,也是使用 Remove 方法从集合的实例中移除的。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() ToolboxCategory() ToolboxCategory()

创建 ToolboxCategory 类的实例。Creates an instance of the ToolboxCategory class.

ToolboxCategory(String) ToolboxCategory(String) ToolboxCategory(String) ToolboxCategory(String)

用指定的名称创建 ToolboxCategory 类的实例。Creates an instance of the ToolboxCategory class with a specified name.

属性

CategoryName CategoryName CategoryName CategoryName

获取或设置工具箱类别的名称。Gets or sets the name of the toolbox category.

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

获取或设置指定索引位置处的工具。Gets or sets the tool at the specified index.

Tools Tools Tools Tools

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

方法

Add(ToolboxItemWrapper) Add(ToolboxItemWrapper) Add(ToolboxItemWrapper) Add(ToolboxItemWrapper)

在工具箱类别集合的末尾添加一个指定的工具。Adds a specified tool to the end of the toolbox category collection.

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

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
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)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper) Remove(ToolboxItemWrapper)

从工具箱类别集合中移除指定工具的第一个匹配项。Removes the first occurrence of a specified tool from the toolbox category collection.

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

事件

PropertyChanged PropertyChanged PropertyChanged PropertyChanged

在属性值更改时发生。Occurs when a property value changes.

显式界面实现

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

将整个 ToolboxCategory 集合复制到兼容的一维 Array 中从目标 Array 的指定索引处开始的位置。Copies the entire ToolboxCategory collection to a compatible one-dimensional Array, starting at the specified index of the target Array.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

获取 ToolboxCategory 中包含的工具数。Gets the number of tools contained in the ToolboxCategory.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

获取一个值,该值指示对 ToolboxCategory 的访问是否同步(线程安全)。Gets a value that indicates whether access to the ToolboxCategory is synchronized (thread safe).

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

获取可用于同步对 ToolboxCategory 的访问的对象。Gets an object that can be used to synchronize access to the ToolboxCategory.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回一个循环访问 ToolboxCategory 集合的枚举数。Returns an enumerator that iterates through the ToolboxCategory collection.

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

ToolboxCategory 中添加一个工具。Adds a tool to the ToolboxCategory.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

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

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

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

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

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

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

将工具插入到 ToolboxCategory 中的指定索引位置处。Inserts a tool into the ToolboxCategory at the specified index.

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

获取一个值,该值指示 ToolboxCategory 是否具有固定大小。Gets a value that indicates whether the ToolboxCategory has a fixed size.

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

获取一个值,该值指示 ToolboxCategory 是否为只读。Gets a value that indicates whether the ToolboxCategory is read-only.

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

获取或设置指定索引位置处的工具。Gets or sets the tool at the specified index.

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

ToolboxCategory 中移除特定工具的第一个匹配项。Removes the first occurrence of a specific tool from the ToolboxCategory.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

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

扩展方法

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)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于