更改Outlook Addin上下文菜单的位置 [英] Change the position of Outlook Addin Context Menu

查看:72
本文介绍了更改Outlook Addin上下文菜单的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Outlook Addin项目中的联系人项目添加上下文菜单..但菜单显示在底部...如何将其设置为菜单中的第一项...?



  var  contextButton = commandBar.Controls.Add(Office.MsoControlType.msoControlButton,missing ,缺失, 0  true  as  Office.CommandBarButton; 



请帮助我。这是邮件项目菜单的图像。



http ://i.stack.imgur.com/Hf5zA.png [ ^ ]

解决方案

据我所知,使用添加方法可以增加控制权结束。要更改其位置,请使用移动方法。



VBA:

 contextButton.Move Before:= 1 





注意:我不知道C#中的等效代码。遗憾...


I am trying to add a context menu for my contact Item in an Outlook Addin Project.. But the Menu appears at the bottom... How can I set it as first Item in Menu... ?

var contextButton = commandBar.Controls.Add(Office.MsoControlType.msoControlButton, missing, missing, 0, true) as Office.CommandBarButton;


Please Help me. This is the Image of the Menu on Mail Items.

http://i.stack.imgur.com/Hf5zA.png[^]

解决方案

As far as i know, using Add method adds control at the end. To change its position, use Move method.

VBA:

contextButton.Move Before:=1



Note: I don't know equivalent code in C#. Sorry...


这篇关于更改Outlook Addin上下文菜单的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆