Constructors
Properties
FilePath
#Gets or sets the file path of the custom layout. Typically the path should only be set during Save operations. The FilePath field is not included in (de)serialization.
Tabs
#Gets the internal list of ribbon tab names. Eventhough items define tabs, this separate list is required in order to specify the order of tabs.
Methods
AddItem
#Add a new item to this layout.
Parameters:
| category (string) | Item category. If no category with this name exists yet, it will be created. |
| subcategory (string) | Item subcategory. If no subcategory with this name exists yet, it will be created. |
| item (GH_LayoutItem) | Item to add. |
AddItem
#Add a new item to this layout.
Parameters:
| category (string) | Item category. If no category with this name exists yet, it will be created. |
| subcategory (string) | Item subcategory. If no subcategory with this name exists yet, it will be created. |
| id (Guid) | ID of item. |
| exposure (GH_Exposure) | Exposure of item. |
AddItem
#Add a new item to this layout.
AddTab
#Add a new tab to this layout. If a tab with a similar name already exists, nothing is done.
Parameters:
| name (string) | Name of tab. |
Deserialize
#Deserialize this layout from a *.ghlayout file. If this function returns False, the state of this object is undefined.
Parameters:
| filepath (string) | File to deserialize from. |
Returns: True on success, false on failure.
FindTab
#Find the first tab which matches the given name.
Parameters:
| name (string) | Name to search for (not case sensitive) |
Returns: The first tab that matches the name, or null if no matching tab could be found.
Serialize
#Serialize this layout to a *.ghlayout file.
Parameters:
| filepath (string) | File to serialize to. |
Returns: True on success, false on failure.
StringSort
#For: RH-83156. Specifically handle leading whitespace for sorting purposes.