<bgRef> (Background Style Reference)

This element specifies the slide background is to use a fill style defined in the style matrix. The @idx attribute refers to the index of a background fill style or fill style within the presentation's style matrix, defined by the <fmtScheme> element. A value of 0 or 1000 indicates no background, values 1-999 refer to the index of a fill style within the <fillStyleLst> element, and values 1001 and above refer to the index of a background fill style within the <bgFillStyleLst> element. The value 1001 corresponds to the first background fill style, 1002 to the second background fill style, and so on.

example:
<p:bgRef idx="2">
  <a:schemeClr val="bg2"/>
</p:bgRef>

The above code indicates a slide background with the style's second fill style using the second background color of the color scheme.

example:
<p:bgRef idx="1001">
  <a:schemeClr val="bg2"/>
</p:bgRef>

The above code indicates a slide background with the style's first background fill style using the second background color of the color scheme.

Parent Elements

<bg>4.4.1.1)

Child Elements

Subclause

<hslClr> (Hue, Saturation, Luminance Color Model)

§5.1.2.2.13

<prstClr> (Preset Color)

§5.1.2.2.22

<schemeClr> (Scheme Color)

§5.1.2.2.29

<scrgbClr> (RGB Color Model - Percentage Variant)

§5.1.2.2.30

<srgbClr> (RGB Color Model - Hex Variant)

§5.1.2.2.32

<sysClr> (System Color)

§5.1.2.2.33

Attributes

Description

<idx> (Style Matrix Index)

Namespace: .../drawingml/2006/main

Specifies the style matrix index of the style referred to.

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

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

<complexType name="CT_StyleMatrixReference">
	<sequence>
	<group ref="EG_ColorChoice" minOccurs="0" maxOccurs="1"/>
	</sequence>
	<attribute name="idx" type="ST_StyleMatrixColumnIndex" use="required"/>
</complexType>