tab
This contains all the tab nodes representing all the tabs.
This element is a container for all the changed relating to existing or new tabs on the Ribbon.
The tab element represents a single tab. In the object model this is RibbonTab.
To display an ampersand use &&
<customUI>
<ribbon>
<tabs>
<tab id="CustomTab" label="My Tab">
<group id="SimpleControls" label="My Group">
<button id="Button1" imageMso="HappyFace" size="large"
label="Large Button"
onAction="ThisWorkbook.MyMacro"/>
</group>
</tab>
ControlId Property
Gets or sets the unique name of a tab
This can only be changed by changing the Name.
CustomId Property
This can only be changed by changing the Name.
Groups Collection
This contains all the group controls created by the add-in that are associated with the tab.
It does not include built-in groups if the tab is a built-in tab.
Attributes
The insertAfterMso, insertAfterQ, insertBeforeMso, and insertBeforeQ attributes are mutually exclusive.
enabled | Specifies whether the control is enabled or not. |
id | Specifies the identifier for a custom control. All custom controls must have unique identifiers. |
idMso | Specifies the identifier of a built-in control. |
idQ | Specifies a qualified identifier for a control. |
insertAfterMso | Specifies the identifier of a built-in control that this control should be inserted after. |
insertAfterQ | Specifies the qualified identifier of a control that this control should be inserted after. |
insertBeforeMso | Specifies the identifier of a built-in control that this control should be inserted before. |
insertBeforeQ | Specifies the qualified identifier of a control that this control should be inserted before. |
keytip | Specifies a string to be used as the keytip for this control. |
label | Specifies a string to be used as the label for this control. |
screentip | Specifies a string to be used as the supertip for this control. |
showImage | Specifies whether this control should display its image. |
showLabel | Specifies whether this control should display its label. |
supertip | Specifies a string to be used as the supertip for this control. |
tag | Specifies an arbitrary string that can be used to hold data or identify the control. |
visible | Specifies whether the control is visible or not. |
Children
group |
Callbacks
getImage | |
getImageMso | |
getKeytip | |
getLabel | |
getScreentip | |
getSupertip | |
getVisible |
' VBA
Public Sub Tab_OnGetVisible(ByRef control As Office.IRibbonControl, _
ByRef Visible as Variant)
End Function
' C#
bool Tab_OnGetVisible(Office.IRibbonControl control)
{
}
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext