語言

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 。

例外狀況

tool 是 null。

適用於