1
1
---
2
2
title : Integrate built-in Office buttons into custom control groups and tabs
3
3
description : Learn how to include built-in Office buttons in your custom command groups and tabs on the Office ribbon.
4
- ms.date : 02/12 /2025
4
+ ms.date : 06/10 /2025
5
5
ms.topic : how-to
6
6
ms.localizationpriority : medium
7
7
---
@@ -43,11 +43,11 @@ The following example adds the Office Paragraph control group to a custom tab.
43
43
"id" : " MyTab" ,
44
44
...
45
45
"groups" : [
46
- ... // Optionally, other groups in the tab
46
+ ... // Optionally, other groups in the tab.
47
47
{
48
48
"builtInGroupId" : " Paragraph"
49
49
},
50
- ... // Optionally, other groups in the tab
50
+ ... // Optionally, other groups in the tab.
51
51
]
52
52
}
53
53
]
@@ -80,11 +80,11 @@ The following example adds the Office Superscript control to a custom group.
80
80
"id" : " MyGroup" ,
81
81
...
82
82
"controls" : [
83
- ... // Optionally, other controls in the group
83
+ ... // Optionally, other controls in the group.
84
84
{
85
85
"builtInControlId" : " Superscript"
86
86
},
87
- ... // Optionally, other controls in the group
87
+ ... // Optionally, other controls in the group.
88
88
]
89
89
}
90
90
]
@@ -105,10 +105,10 @@ To insert a built-in Office control group into a tab, add an [OfficeGroup](/java
105
105
The following markup example adds the Office Paragraph control group to a custom tab and positions it to appear just after a custom group.
106
106
107
107
``` xml
108
- <ExtensionPoint xsi : type =" ContosoRibbonTab " >
108
+ <ExtensionPoint xsi : type =" PrimaryCommandSurface " >
109
109
<CustomTab id =" Contoso.TabCustom1" >
110
110
<Group id =" Contoso.myCustomTab.group1" >
111
- <!-- additional markup omitted -->
111
+ <!-- Additional markup omitted. -->
112
112
</Group >
113
113
<OfficeGroup id =" Paragraph" />
114
114
<Label resid =" customTabLabel1" />
@@ -123,7 +123,7 @@ To insert a built-in Office control into a custom group, add an [OfficeControl](
123
123
The following markup example adds the Office Superscript control to a custom group and positions it to appear just after a custom button.
124
124
125
125
``` xml
126
- <ExtensionPoint xsi : type =" ContosoRibbonTab " >
126
+ <ExtensionPoint xsi : type =" PrimaryCommandSurface " >
127
127
<CustomTab id =" Contoso.TabCustom2" >
128
128
<Group id =" Contoso.TabCustom2.group1" >
129
129
<Label resid =" residCustomTabGroupLabel" />
0 commit comments