Table of Contents

Constructor CadPluginButton

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

CadPluginButton(CadPluginIcon, string, Action<CadPluginContext>)

Makes a button.

public CadPluginButton(CadPluginIcon icon, string toolTip, Action<CadPluginContext> run)

Parameters

icon CadPluginIcon

The icon, drawn 16 pixels.

toolTip string

The tooltip; empty where null.

run Action<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.