CadRibbonPanel
from OpenCAD2D.Plugins import CadRibbonPanel
class CadRibbonPanel(System.Object) ยท CadRibbonPanel in the .NET reference
A panel of a ribbon tab: a titled row of items, as AutoCAD's RibbonPanel.
Constructors
__init__
def __init__(self, title: str) -> None
Makes a panel.
Properties and fields
DialogLauncher
@property
def DialogLauncher(self) -> CadRibbonButton | None
@DialogLauncher.setter
def DialogLauncher(self, value: CadRibbonButton | None) -> None
Gets or sets the arrow at the right of the panel's title that opens the panel's dialog, as AutoCAD's RibbonPanelSource.DialogLauncher: its command, callback or macro runs on a click, its tooltip is the button's and it is grey where its CadRibbonButton.CanRun says no. Its icon, size and text are not drawn. Null, until set, for a panel with none. A plugin that uses it states [assembly: CadPluginApi("1.2")].
Items
@property
def Items(self) -> System.Collections.Generic.IList[CadRibbonItem]
Gets the items, left to right: a large item stands alone in its column, and standard items that follow one another stack in columns of three, top down, as AutoCAD's row panels do.
SlideOutItems
@property
def SlideOutItems(self) -> System.Collections.Generic.IList[CadRibbonItem]
Gets the items under the panel's title with a small arrow, as AutoCAD's items after a RibbonPanelBreak: laid out as CadRibbonPanel.Items are, shown in a drop-down that the title opens, which closes after a button runs unless it is pinned. Empty, until filled, for a panel with none. A plugin that uses it states [assembly: CadPluginApi("1.2")].
Title
@property
def Title(self) -> str
Gets the title under the panel.