ToolboxCategory.Remove(ToolboxItemWrapper) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从工具箱类别集合中删除指定工具的第一个匹配项。
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 。
例外
tool 是 null。