Method DeleteTool
DeleteTool(int)
Removes the specified tool from the toolbar and deletes it.
public bool DeleteTool(int toolId)
Parameters
toolId
intID of a previously added tool.
Returns
- bool
true
if the tool was removed orfalse
otherwise, 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.