Constructor CadPluginButton
CadPluginButton(CadPluginIcon, string, Action<CadPluginContext>)
Makes a button.
public CadPluginButton(CadPluginIcon icon, string toolTip, Action<CadPluginContext> run)
Parameters
iconCadPluginIconThe icon, drawn 16 pixels.
toolTipstringThe tooltip; empty where null.
runAction<CadPluginContext>The callback, run at once on the window's thread; one that throws is logged and its message written on the command line with the plugin's name.
Exceptions
- ArgumentNullException
Thrown when the icon or the callback is null.