How to italicize the email entry in explorer window

S

Sandeep K

Hi All,
I want to italicize the display of email item in explorer window. I am
unable to find any property of MailItem to help me in achieving that. Please
help me.
 
S

Sue Mosher [MVP]

You're not finding anything because there is no such property. Whether a
message appears in italics depends on the automatic formatting settings of
the current view and whether the message has properties that meet the
criteria of a formatting rule that involves italics. Automatic formatting
rules are exposed programmatically only in Outlook 2007.
 
S

Sandeep K

Sue Mosher said:
You're not finding anything because there is no such property. Whether a
message appears in italics depends on the automatic formatting settings of
the current view and whether the message has properties that meet the
criteria of a formatting rule that involves italics. Automatic formatting
rules are exposed programmatically only in Outlook 2007.
Sue,
My addin is developed in C# and targeted for outlook 2007 and 2003 therefore
if outlook 2007 exposes such functionality than it is fine with me. Can you
let me know how can i achieve it?
 
S

Sue Mosher [MVP]

Take a look at the TableView.AutoFormatRules collection and the
AutoFormatRule object, which has Filter and Font properties to tell you what
condition results in what display font. The Outlook developer documentation
article at http://msdn.microsoft.com/en-us/library/bb176349.aspx explains a
bit more about how these rules operate.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top