Export (0) Print
Expand All
Expand Minimize

2.1.1748 Part 4 Section 6.2.3.5, ST_ColorType (Color Type)

a. The standard indicates the kinds of values that the ST_ColorType simple type uses.

In Office, decimal RGB is specified using rgb followed by three comma-separated values in parentheses. These values are an ordered set in the range 0-255 and represent the red, green, and blue components of the color.

[Example:

< ... color="rgb(95,39,38)" ... >

end example]

b. The standard states that the value of the ST_ColorType simple type can be specified using three-character hexadecimal RGB notation.

Office does not allow this simple type to be specified in this way.

c. The standard does not indicate the valid color palette entry names for the ST_ColorType simple type.

In Office, the following color palette entries are supported:

ButtonFace

WindowText

Menu

Highlight

HighlightText

CaptionText

ActiveCaption

ButtonHighlight

ButtonShadow

ButtonText

GrayText

InactiveCaption

InactiveCaptionText

InfoBackground

InfoText

MenuText

Scrollbar

Window

WindowFrame

ThreeDLightShadow

ThreeDDarkShadow

ActiveBorder

InactiveBorder

Background

AppWorkspace

ThreeDFace (represents the same color as ButtonFace)

ThreeDShadow (represents the same color as ButtonShadow)

ThreeDHighlight (represents the same color as ButtonHighlight)

[Example:

<... color="InactiveCaption" ... >

end example]

d. The standard indicates the kinds of values that the ST_ColorType simple type uses.

In Office, a color palette entry is specified using wincolor followed by a number in parentheses. The number is the zero-based index of a color in the palette as described in the preceding section.

[Example:

<... color="wincolor(11)" ... >

end example]

e. The standard does not state that the value of the ST_ColorType simple type can be specified using a named shape property notation.

Office supports a named shape property notation as a value for the simple type. A property is specified using the name of the shape color property. The following properties are supported:

Property

Description

fill

Fill color

line

Line color

lineOrFill

Line color if specified, otherwise, the fill color

fillThenLine

Fill color if specified, otherwise, the line color

fillBack

Fill background color

lineBack

Line background color

shadow

Shadow color

none

No color

[Example:

<... color="lineOrFill" ... >

end example]

f. The standard indicates that the recoloring instruction behavior is application-specific.

Office supports recoloring instructions in the following way. Let A represent the amount argument to the recoloring instruction.

Instruction

Description

darken

Scale each color component by A/256.

lighten

Scale the inverse of each color component by A/256, then invert the result.

add

Add A to each color component, limited to a maximum value of 255.

subtract

Subtract A from each color component, limited to a minimum value of 0.

reverseSubtract

Subtract each color component from A, limited to a minimum value of 0.

blackWhite

A color component is 0 if less than A, otherwise 255.

invert

Subtract each color component from 255.

invert128

For each color component less than 128, subtract 128 from it, otherwise add 128 to it.

grayScale

Convert the color to a grayscale equivalent.

Office does not save an amount argument for the invert, invert128 and grayScale recoloring instructions.

g. The standard indicates how a recoloring instruction is formatted.

Office does not save a recoloring amount argument for the invert, invert128 and grayScale instructions.

Show:
© 2015 Microsoft