Changing font in a TOA field code

T

tr7

Hi,
I have a method in C# which is trying to change the font from unformatted to
either italics or underline in a TA field code.

I'm doing:

Application.Selection.Range.Font.Italic == 1;

and it keeps reverting back to -1 as the value for italic so the font
remains unformatted. Does anyone know how I can apply a format to selected
text in a TA field code and have it stick? Thanks very much.
 

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