Table of Contents

Class CadPluginRibbonButtonEntry

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

One button of a panel of the "ribbon" of a plugin.json: { "text": "Ring", "command": "RING", "icon": "ring.png", "size": "large", "tooltip": "Draws a ring" }. A button starts a command and does nothing else.

public sealed class CadPluginRibbonButtonEntry
Inheritance
CadPluginRibbonButtonEntry
Inherited Members

Properties

Command

Gets the command the button starts.

Icon

Gets the path of the button's icon, relative to the manifest; null where none is declared.

IsLarge

Gets whether the button is drawn large ("size": "large", the icon 32 pixels over the text); false for the standard size.

Text

Gets the text of the button.

ToolTip

Gets the tooltip of the button; null where none is declared.