<patternFill> (Pattern)

This element is used to specify cell fill information for pattern and solid color cell fills. For solid cell fills (no pattern), <fgColor> is used. For cell fills with patterns specified, then the cell fill color is specified by the <bgColor> element.

Parent Elements


Child Elements


<bgColor> (Background Color)


<fgColor> (Foreground Color)




<patternType> (Pattern Type)

Specifies the fill pattern type (including solid and none) Default is none, when missing.

The possible values for this attribute are defined by the ST_PatternType simple type (§3.18.57).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_PatternFill">
	<element name="fgColor" type="CT_Color" minOccurs="0" maxOccurs="1"/>
	<element name="bgColor" type="CT_Color" minOccurs="0" maxOccurs="1"/>
	<attribute name="patternType" type="ST_PatternType" use="optional"/>