Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ColorFormat interface

Represents the color of a one-color object or the foreground or background color of an object with a gradient or patterned fill.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

[GuidAttribute("000209C6-0000-0000-C000-000000000046")]
public interface ColorFormat

Use one of the properties listed in the following table to return a ColorFormat object.

Use this property

With this object

To return a ColorFormat object that represents this

BackColor

FillFormat

Background fill color (used in a shaded or patterned fill)

ForeColor

FillFormat

Foreground fill color (or simply the fill color for a solid fill)

BackColor

LineFormat

Background line color (used in a patterned line)

ForeColor

LineFormat

Foreground line color (or just the line color for a solid line)

ForeColor

ShadowFormat

Shadow color

ExtrusionColor

ThreeDFormat

Color of the sides of an extruded object

Use the RGB property to set a color to an explicit red-green-blue value.

Show:
© 2015 Microsoft