'Declaration
Public Function ReplaceTool(Of TTool As NTool)( _ ByVal newTool As NTool, _ ByVal enable As System.Boolean _ ) As System.Boolean
'Usage
Dim instance As NCompositeTool Dim newTool As NTool Dim enable As System.Boolean Dim value As System.Boolean value = instance.ReplaceTool(Of TTool)(newTool, enable)
Parameters
- newTool
- The replacement tool.
- enable
- Whether to enable the tool or not.
Type Parameters
- TTool
- The type of the tool to replace.
Return Value
True if a tool was replaced, otherwise - false.