ToolboxCategoryItems 类

定义

ToolboxCategory 对象的集合。A collection of ToolboxCategory objects. 此类的状态为 sealed,因此不能继承此类。在 Visual Studio 2010 之外重新托管 Windows 工作流设计器时,此类为工具箱项的分类提供支持。This class is sealed and so cannot be inherited.This class provides support for the categorization of toolbox items when re-hosting the Windows Workflow Designer outside of Visual Studio 2010.

public ref class ToolboxCategoryItems sealed : System::Collections::Generic::ICollection<System::Activities::Presentation::Toolbox::ToolboxCategory ^>, System::Collections::Generic::IEnumerable<System::Activities::Presentation::Toolbox::ToolboxCategory ^>, System::Collections::IList
public sealed class ToolboxCategoryItems : System.Collections.Generic.ICollection<System.Activities.Presentation.Toolbox.ToolboxCategory>, System.Collections.Generic.IEnumerable<System.Activities.Presentation.Toolbox.ToolboxCategory>, System.Collections.IList
type ToolboxCategoryItems = class
    interface ICollection<ToolboxCategory>
    interface seq<ToolboxCategory>
    interface IEnumerable
    interface IList
    interface ICollection
Public NotInheritable Class ToolboxCategoryItems
Implements ICollection(Of ToolboxCategory), IEnumerable(Of ToolboxCategory), IList
继承
ToolboxCategoryItems
实现

构造函数

ToolboxCategoryItems()

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

属性

Count

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

IsReadOnly

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

Item[Int32]

获取指定索引位置处的工具箱类别。Gets the toolbox category at the specified index.

方法

Add(ToolboxCategory)

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

Clear()

ToolboxCategoryItems 集合中移除所有项。Removes all the items from the ToolboxCategoryItems collection.

Contains(ToolboxCategory)

确定 ToolboxCategoryItems 集合中是否包含特定的工具箱类别项。Determines whether the ToolboxCategoryItems collection contains a specific toolbox category item.

CopyTo(ToolboxCategory[], Int32)

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

Equals(Object)

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

(继承自 Object)
GetEnumerator()

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

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
Remove(ToolboxCategory)

ToolboxCategoryItems 中移除特定工具箱类别的第一个匹配项。Removes the first occurrence of a specific toolbox category from the ToolboxCategoryItems.

ToString()

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

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

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

ICollection.Count

获取 ToolboxCategoryItems 集合中包含的工具箱类别数。Gets the number of toolbox categories contained in the ToolboxCategoryItems collection.

ICollection.IsSynchronized

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

ICollection.SyncRoot

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

IEnumerable.GetEnumerator()

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

IList.Add(Object)

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

IList.Clear()

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

IList.Contains(Object)

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

IList.IndexOf(Object)

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

IList.Insert(Int32, Object)

将工具箱类别插入到 ToolboxCategoryItems 集合中的指定索引位置。Inserts a toolbox category into the ToolboxCategoryItems collection at the specified index.

IList.IsFixedSize

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

IList.IsReadOnly

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

IList.Item[Int32]

获取或设置集合中的指定索引位置处的工具箱类别。Gets or sets the toolbox category at a specified index of the collection.

IList.Remove(Object)

ToolboxCategoryItems 中移除特定工具箱类别的第一个匹配项。Removes the first occurrence of a specific toolbox category from the ToolboxCategoryItems.

IList.RemoveAt(Int32)

ToolboxCategoryItems 集合的指定索引位置处移除工具箱类别。Removes a toolbox category at the specified index of the ToolboxCategoryItems collection.

扩展方法

CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

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.

Ancestors<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个节点的上级。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个节点的上级。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子代节点的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

返回源集合中每个元素和文档的子元素的集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

返回源集合中经过筛选的每个元素和文档的子元素集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

返回节点集合(其中包含源集合中的所有节点),并按文档顺序排列。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子节点集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

将源集合中的每个节点从其父节点中移除。Removes every node in the source collection from its parent node.

适用于