Table of Contents

Property CanRun

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

CanRun

Gets or sets whether the button is on, asked when the window asks its commands again (the selection, the drawing or a command changes). Null, until set: a button that starts a command or runs a macro is on while a drawing is open, one that runs a callback always. A predicate that throws gives false.

public Func<CadPluginContext, bool> CanRun { get; set; }

Property Value

Func<CadPluginContext, bool>