Reputation: 6482
I have searched online and on SO and can't find anybody else asking about this which I found a little surprising; perhaps my search query is off.
I am trying to add the 'Outline' effect (as seen under the Text Effects drop-down on the Home ribbon) without luck. There is an Outline property on Font, but I've tried setting it to to 1 with no effect. The Glow and Reflection effects are configurable (e.g. Font.Glow.Radius, Font.Glow.Color).
I got excited when I saw the Font.Borders property
range[j].Font.Borders.Enable = 1;
range[j].Font.Borders.OutsideLineStyle = WdLineStyle.wdLineStyleSingle;
range[j].Font.Borders.OutsideLineWidth = WdLineWidth.wdLineWidth100pt;
range[j].Font.Borders.OutsideColor = WdColor.wdColorBlack;
But this was just a rectangular border around the text itself.
Upvotes: 0
Views: 686
Reputation: 25673
Font.Outline = True
// value is probably -1 in C# rather than 1
Font.Line.ForeColor
//and use .RGB
or .ObjectThemeColor
to specify the color, keeping in mind that you need to "translate" the RGB color between COM and .NET.
Upvotes: 1