Share via


ColorFormat Interface 

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

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

Public Class olorFormatImplementation
    Implements ColorFormat
End Class
Dim olorFormatImplementation1 As New olorFormatImplementation()

Syntax

Public Interface ColorFormat
    Inherits _IMsoDispObj
public interface ColorFormat : _IMsoDispObj
public interface class ColorFormat : public _IMsoDispObj
public interface ColorFormat implements _IMsoDispObj
public interface ColorFormat implements _IMsoDispObj

Remarks

You can set colors to an explicit red-green-blue value (by using the RGB property) or to a color in the color scheme (by using the SchemeColor property).

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

The background fill color (used in a shaded or patterned fill)

ForeColor

FillFormat

The foreground fill color (or simply the fill color for a solid fill)

BackColor

LineFormat

The background line color (used in a patterned line)

ForeColor

LineFormat

The foreground line color (or just the line color for a solid line)

ForeColor

ShadowFormat

The shadow color

ExtrusionColor

ThreeDFormat

The color of the sides of an extruded object

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace

Other Resources

ColorFormat Members