Table of Contents

CadRibbonSplitButton

from OpenCAD2D.Plugins import CadRibbonSplitButton

class CadRibbonSplitButton(CadRibbonItem) ยท CadRibbonSplitButton in the .NET reference

A button with a drop-down of others, as AutoCAD's Circle button is: the part on top runs one button, the arrow lists them all. With CadRibbonSplitButton.RemembersLast the top shows and runs the one used last.

Constructors

__init__

.NET

def __init__(self, text: str, buttons: System.Collections.Generic.IReadOnlyList[CadRibbonButton]) -> None

Makes a split button.

Properties and fields

Buttons

.NET

@property
def Buttons(self) -> System.Collections.Generic.IReadOnlyList[CadRibbonButton]

Gets the buttons of the drop-down, in the order given.

RemembersLast

.NET

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

Gets or sets whether the top shows and runs the button used last, as AutoCAD's Circle split does: true until set; false for always the first.