Table of Contents

Property ShowWhen

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

ShowWhen

Gets or sets what makes the tab contextual, as AutoCAD's Text Editor tab is: asked when the selection, the drawing or a command changes, the tab is shown, selected as it appears, while it answers true, and goes with Home selected again when it answers false. Null, until set, for a tab that is always shown. A callback that throws gives false.

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

Property Value

Func<CadPluginContext, bool>