自定义工具栏上的标准按钮不可见

时间:2018-08-21 19:49:43

标签: ms-word customization ribbon

在customUI工具中,我创建了以下XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
        <ribbon>
        <tabs>
      <tab idMso="TabHome">
        <group idMso="GroupFont" visible="false" />
        <group idMso="GroupParagraph" visible="false" />
        <group id="CustGrp1" label="MyGroup" insertBeforeMso="GroupStyles">
            <button idMso="TableInsertDialogWord" showLabel="false" />
            <button idMso="ConvertTextToTable" showLabel="false" />
            <button idMso="SpellingAndGrammar" showLabel="false" />
            <button idMso="AlignLeft" showLabel="false" />
            <button idMso="AlignCenter" showLabel="false" />
            <button idMso="Superscript" showLabel="false" />
            <button idMso="HyperlinkInsert" showLabel="false" />
            <button idMso="BookmarkInsert" showLabel="false" />
            <button idMso="AutoTextInsert" showLabel="false" />
            <button idMso="ReviewNewComment" showLabel="false" />
            <button idMso="SymbolsDialog" showLabel="false" />
            <button idMso="ParagraphMarks" showLabel="false" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

我隐藏了两个组,并添加了一个自定义组。在此自定义组中,我仅使用适当的idMSO(从MS下载)添加标准按钮。在Word中,我只能看到十二个按钮中的五个。怎么了我的ID不正确吗?

0 个答案:

没有答案