Z
Zumwalt
I am trying to set the color of the font. I have tried this a few different
ways and have yet to be able to change the color of the font. I am using C#
(mind you I have tried posting C# programming questions in the MSDN Forums
but the moderators there say C# questions for office are off topic)
ways and have yet to be able to change the color of the font. I am using C#
(mind you I have tried posting C# programming questions in the MSDN Forums
but the moderators there say C# questions for office are off topic)
Code:
WdColor setColor = WdColor.wdColorRed;
oHeader.Range.Font.Bold = 1;
oHeader.Range.Font.Size = 14;
oHeader.Range.Font.Name = "Arial";
oHeader.Range.ParagraphFormat.Alignment =
Word.WdParagraphAlignment.wdAlignParagraphCenter;
oHeader.Range.Font.Color = setColor;
oHeader.Range.InsertAfter(BlockItem.Header1.ToUpper());