vsto重新调整字体组合框的用途

vsto重新调整字体组合框的用途,vsto,powerpoint,office-interop,Vsto,Powerpoint,Office Interop,我正在尝试在PowerPoint(vsto加载项)中为我自己的对象重新调整内置字体选择器的用途。我使用ribbon xml成功地重新调整了常规命令(粗体、斜体等)的用途 我有一个测试,看起来像这样: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <r

我正在尝试在PowerPoint(vsto加载项)中为我自己的对象重新调整内置字体选择器的用途。我使用ribbon xml成功地重新调整了常规命令(粗体、斜体等)的用途

我有一个测试,看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
 <ribbon>
   <tabs>
     <tab idMso="TabAddIns" label="Test">
       <group id="MyGroup"
              label="My Group">
         <comboBox idMso="Font" label="ComboBox1" onChange="ChangeCallback"/>
       </group>
     </tab>
   </tabs>
 </ribbon>
</customUI>
当我使用idMso=“Font”时,回调停止工作,但组合框可以工作,我可以使用它来选择与普通字体类似的字体

我尝试了以下回调,但没有成功

ChangeCallback(Office.IRibbonControl control, string text, ref bool cancelDefault)
{
     Debug.WriteLine("Changed");
}
当我重新调整命令的用途时,我将其放在xml的commands部分,而不是ribbon中,但是不允许在其中包含comboBox元素

你有什么办法让它发挥作用吗

ChangeCallback(Office.IRibbonControl control, string text, ref bool cancelDefault)
{
     Debug.WriteLine("Changed");
}