如何在 Outlook 中添加获取默认按钮的 CommandBarControl?
How can I add a get the CommandBarControl of a default button in Outlook?
我正在尝试将 ClickEventHandler 添加到 "New Appointment" 表单上的 "Invite Attendees" 按钮的按钮。但是,在执行此操作之前,我还需要一个控件来添加事件。为了获得这种控制,到目前为止,我一直在尝试使用 Inspector.CommandBars.FindControl()
,但运气不佳。文档对我也没有太大帮助 (https://msdn.microsoft.com/en-us/library/microsoft.office.core._commandbars.findcontrol.aspx)。如果我还没有控件,应该从哪里获取控件的 ID?!
感谢您的帮助。 ☺
这根本不可能。您最接近的方法是添加您自己的按钮并向其添加事件处理程序。
我正在尝试将 ClickEventHandler 添加到 "New Appointment" 表单上的 "Invite Attendees" 按钮的按钮。但是,在执行此操作之前,我还需要一个控件来添加事件。为了获得这种控制,到目前为止,我一直在尝试使用 Inspector.CommandBars.FindControl()
,但运气不佳。文档对我也没有太大帮助 (https://msdn.microsoft.com/en-us/library/microsoft.office.core._commandbars.findcontrol.aspx)。如果我还没有控件,应该从哪里获取控件的 ID?!
感谢您的帮助。 ☺
这根本不可能。您最接近的方法是添加您自己的按钮并向其添加事件处理程序。