Method ForCommand
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ForCommand(string, string, string)
Makes a command tool.
public static CadTool ForCommand(string name, string command, string icon = null)
Parameters
namestringThe name shown under its icon.
commandstringThe command line it runs:
LINE.iconstringThe icon's name; null for the plain command icon.
Returns
- CadTool
The tool.
Exceptions
- ArgumentNullException
Thrown when the name or the command is null.