Table of Contents

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

name string

The name shown under its icon.

command string

The command line it runs: LINE.

icon string

The icon's name; null for the plain command icon.

Returns

CadTool

The tool.

Exceptions

ArgumentNullException

Thrown when the name or the command is null.