Is it possible to disable contextual tabs in MS Word using CustomUI xml? I added the following to customui XML but without any effect
<mso:contextualTabs>
<mso:tabSet idMso="TabSetSmartArtTools" visible="false" />
<mso:tabSet idMso="TabSetChartTools" visible="false" />
<mso:tabSet idMso="TabSetTextBoxTools" visible="false"开发者_如何学Go />
<mso:tabSet idMso="TabSetDrawingTools" visible="false" />
<mso:tabSet idMso="TabSetDrawingToolsClassic" visible="false" />
<mso:tabSet idMso="TabSetWordArtTools" visible="false" />
<mso:tabSet idMso="TabSetDiagramTools" visible="false" />
<mso:tabSet idMso="TabSetOrganizationChartTools" visible="false" />
<mso:tabSet idMso="TabSetPictureTools" visible="false" />
<mso:tabSet idMso="TabSetPictureToolsClassic" visible="false" />
<mso:tabSet idMso="TabSetTableTools" visible="false" />
<mso:tabSet idMso="TabSetHeaderAndFooterTools" visible="false" />
<mso:tabSet idMso="TabSetEquationTools" visible="false" />
<mso:tabSet idMso="TabSetInkTools" visible="false" />
</mso:contextualTabs>
You can either try to use the getVisible
property. See MSDN
<mso:tabSet idMso="TabSetSmartArtTools" getVisible="false" />
Or try to start from scratch. See here
精彩评论