Table of Contents

CadRibbonItem

from OpenCAD2D.Plugins import CadRibbonItem

class CadRibbonItem(System.Object) ยท CadRibbonItem in the .NET reference

What a panel holds: a CadRibbonButton or a CadRibbonSplitButton.

Properties and fields

Description

.NET

@property
def Description(self) -> str | None
@Description.setter
def Description(self, value: str | None) -> None

Gets or sets the body of the tooltip; null, until set, for none.

Icon

.NET

@property
def Icon(self) -> CadPluginIcon | None
@Icon.setter
def Icon(self, value: CadPluginIcon | None) -> None

Gets or sets the icon; null for the presenter's plugin icon.

ShowText

.NET

@property
def ShowText(self) -> bool
@ShowText.setter
def ShowText(self, value: bool) -> None

Gets or sets whether the text is drawn: true until set; a standard item with no text shows its icon alone.

Size

.NET

@property
def Size(self) -> CadRibbonItemSize
@Size.setter
def Size(self, value: CadRibbonItemSize) -> None

Gets or sets how big the item is drawn: CadRibbonItemSize.Standard until set.

Text

.NET

@property
def Text(self) -> str

Gets the text under or beside the icon.

ToolTip

.NET

@property
def ToolTip(self) -> str | None
@ToolTip.setter
def ToolTip(self, value: str | None) -> None

Gets or sets the title line of the tooltip; null, until set, for CadRibbonItem.Text.