GH_LayoutTab

References
Represents a tab on a ribbon layout.

Constructors

GH_LayoutTab

#
Create a new blank Tab
public GH_LayoutTab()

GH_LayoutTab

#
Duplicate another Tab.
public GH_LayoutTab(
GH_LayoutTab
other
Tab to duplicate
)

GH_LayoutTab

#
Create a new empty tab.
public GH_LayoutTab(
name
Name of tab.
)

Properties

Name

#
Gets or sets the name of this tab. Tabs must have a non-zero name or they will be "unnamed".
public string Name { get; set; }

Panels

#
Gets the list of Panels for this tab.
public List<GH_LayoutPanel> Panels { get; }

Selected

#
Gets or sets whether this tab is selected. This property is used exclusively inside Layout Editors, not Ribbon controls.
public bool Selected { get; set; }

Methods

AddPanel

#
Add a new panel to this tab. The panel will receive a default name.
public GH_LayoutPanel AddPanel()

AddPanel

#
Add a new panel to this layout. If a panel with a similar name already exists, nothing is done.
public GH_LayoutPanel AddPanel(
name
Name of panel.
)

CompareTo

#
public int CompareTo()

Deselect

#
Deselect this tab and all objects it contains.
public void Deselect()

Read

#
public bool Read(
reader
)
Read

SortPanels

#
Attempt to sort the panels in this tab to match a given order.
public void SortPanels(
params string[]
order
A collection of strings that identify the order of panels.
)

Write

#
public bool Write(
writer
)
Write