Edit

Share via


Word.Interfaces.ColorFormatUpdateData interface

An interface for updating data on the ColorFormat object, for use in colorFormat.set({ ... }).

Properties

brightness

Specifies the brightness of a specified shape color. Valid values are from -1 (darkest) to 1 (lightest), 0 represents neutral.

objectThemeColor

Specifies the theme color for a color format.

rgb

Specifies the red-green-blue (RGB) value of the specified color. You can provide the value in the '#RRGGBB' format.

tintAndShade

Specifies the lightening or darkening of a specified shape's color. Valid values are from -1 (darkest) to 1 (lightest), 0 represents neutral.

Property Details

brightness

Specifies the brightness of a specified shape color. Valid values are from -1 (darkest) to 1 (lightest), 0 represents neutral.

brightness?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]

objectThemeColor

Specifies the theme color for a color format.

objectThemeColor?: Word.ThemeColorIndex | "NotThemeColor" | "MainDark1" | "MainLight1" | "MainDark2" | "MainLight2" | "Accent1" | "Accent2" | "Accent3" | "Accent4" | "Accent5" | "Accent6" | "Hyperlink" | "HyperlinkFollowed" | "Background1" | "Text1" | "Background2" | "Text2";

Property Value

Word.ThemeColorIndex | "NotThemeColor" | "MainDark1" | "MainLight1" | "MainDark2" | "MainLight2" | "Accent1" | "Accent2" | "Accent3" | "Accent4" | "Accent5" | "Accent6" | "Hyperlink" | "HyperlinkFollowed" | "Background1" | "Text1" | "Background2" | "Text2"

Remarks

[ API set: WordApiDesktop 1.3 ]

rgb

Specifies the red-green-blue (RGB) value of the specified color. You can provide the value in the '#RRGGBB' format.

rgb?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

tintAndShade

Specifies the lightening or darkening of a specified shape's color. Valid values are from -1 (darkest) to 1 (lightest), 0 represents neutral.

tintAndShade?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.3 ]