ToolboxCategoryItems.Contains(ToolboxCategory) 方法

定义

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

public:
 virtual bool Contains(System::Activities::Presentation::Toolbox::ToolboxCategory ^ item);
public bool Contains (System.Activities.Presentation.Toolbox.ToolboxCategory item);
abstract member Contains : System.Activities.Presentation.Toolbox.ToolboxCategory -> bool
override this.Contains : System.Activities.Presentation.Toolbox.ToolboxCategory -> bool
Public Function Contains (item As ToolboxCategory) As Boolean

参数

item
ToolboxCategory

要查找的工具箱类别项。The toolbox category item to look for.

返回

如果在 ToolboxCategoryItems 中找到了 item,则为 true;否则为 falsetrue if the item is found in the ToolboxCategoryItems; otherwise, false.

实现

异常

itemnullThe item is null.

适用于