Microsoft Office Tutorials and References
In Depth Information
The following image is a typical view of the category option available in
Let's see in an example of how to get the category property by using the VSTO
objects for the mail items.
Open Visual Studio 2008 and create a new solution, as described earlier. Write
the following code to the context menu item in the mail box folder, inside the
private void ThisAddIn_Startup(object sender, System.EventArgs e)
// Creates a new mail item instance
Outlook.MailItem OLmailitems = (Outlook.MailItem)this.Application.
// Get the category dialog window for the mail items
After executing this program, we can see the different color properties, as shown in
the following screenshot: