ToolboxCategory.Remove(ToolboxItemWrapper) 方法

定义

从工具箱类别集合中删除指定工具的第一个匹配项。

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 从集合中移除的项。

返回

true 如果已成功删除该工具,则为 ;否则,为 false. 如果在集合中找不到该工具,此方法也会返回 false

例外

toolnull

适用于