ToolboxCategory.Remove(ToolboxItemWrapper) 方法

定义

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

public:
 bool Remove(System::Activities::Presentation::Toolbox::ToolboxItemWrapper ^ tool);
public bool Remove (System.Activities.Presentation.Toolbox.ToolboxItemWrapper tool);
member this.Remove : System.Activities.Presentation.Toolbox.ToolboxItemWrapper -> bool
Public Function Remove (tool As ToolboxItemWrapper) As Boolean

参数

tool
ToolboxItemWrapper

要从集合中移除的 ToolboxItemWrapper 项。The ToolboxItemWrapper item to remove from the collection.

返回

如果该工具已成功移除,则为 true;否则为 falsetrue if the tool is successfully removed; otherwise, false. 如果在集合中未找到该工具,此方法也返回 falseThis method also returns false if the tool was not found in the collection.

异常

toolnullThe tool is null.

适用于