張貼日期:Sep 14, 2011 9:0:24 AM
Select a the idMso to override in http://msdn.microsoft.com/en-us/library/dd945681%28v=office.12%29.aspx
Add <command> tag to Ribbon XML. e.g.
<command idMso ="Paste" onAction="ExampleHandler"/>
Set onAction to customized event handler.
add the event handler method to Addin as follow example.
void ExampleHandler(IRibbonControl control, ref bool cancelDefault)
It only works when user install and enabled the add-in or template.