Method DeleteTool
DeleteTool(int)
Removes the specified tool from the toolbar and deletes it.
public bool DeleteTool(int toolId)
Parameters
toolIdintID of a previously added tool.
Returns
- bool
trueif the tool was removed orfalseotherwise, e.g. if the tool with the given ID was not found.
Remarks
Note that if this tool was added by AddControl(Control), the associated control is not deleted and must either be reused (e.g.by reparenting it under a different window) or destroyed by caller.