Table of Contents

Method DeleteTool

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

DeleteTool(int)

Removes the specified tool from the toolbar and deletes it.

public bool DeleteTool(int toolId)

Parameters

toolId int

ID of a previously added tool.

Returns

bool

true if the tool was removed or false 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.