Microsoft Office Tutorials and References
In Depth Information
Email messages
Office.CommandBarPopup PacktCustomItem =
(Office.CommandBarPopup)PacktCommandBar.Controls.Add(Office.
MsoControlType.msoControlPopup, Type.Missing,
"Custom Menu Item", PacktCommandBar.Controls.Count + 1,
Type.Missing);
// Added to separate group in context menu
PacktCustomItem.BeginGroup = true;
// Set the tag value for the menu
PacktCustomItem.Tag = "PacktCustomMenuItem";
// Caption for the context menu item
PacktCustomItem.Caption = "Custom Menu Item1";
// Set it to visible
PacktCustomItem.Visible = true;
}
The resulting custom menu item in the Inbox mail folder is visible in the
following screenshot:
 
Search JabSto ::




Custom Search