編輯

共用方式為


ColorFormat Interface

Definition

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.

public interface class ColorFormat : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0312-0000-0000-C000-000000000046")]
public interface ColorFormat : Microsoft.Office.Core._IMsoDispObj
Public Interface ColorFormat
Implements _IMsoDispObj
Attributes
Implements

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.

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

Properties

Application

Returns an Application object that represents the Microsoft Excel application.

Brightness

Gets or sets the luminosity of the specified object.

Creator

Returns a 32-bit integer that indicates the application in which this object was created.

ObjectThemeColor

Returns or sets a color that is mapped to the theme color scheme. Read/write MsoThemeColorIndex.

Parent

Returns the parent object for the specified object.

RGB

Returns or sets the red-green-blue value of the specified color.

SchemeColor

Returns or sets the color of a color object as an index in the current color scheme.

TintAndShade

Returns or sets a Single that lightens or darkens the color of a specified shape.

Type

Returns or sets the callout format type.

Applies to