a:grpFill (Group Fill)

Specifies that a shape inherits fill properties from its parent group shape.

Parent elements

Description

\:grpFill\ is the DrawingML element that applies fill inherited from the parent group shape. It is defined in ECMA-376 Part 1 §20.1.8.26.

Group fill enables shapes within a grouped set to automatically use the fill properties of their parent group, creating visual cohesion. This is essential for:

  • Creating grouped shapes with uniform appearance
  • Maintaining visual consistency in shape collections
  • Enabling theme-based fill changes across entire groups
  • Reducing file size by eliminating redundant fill specifications
  • Facilitating master slide design patterns

Group fill differs from:

  • Solid fill (\:solidFill) — Direct color fill
  • No fill (\:noFill) — No fill, overrides inheritance
  • Inherited fill (omitted) — Implicit inheritance from master/theme

Attributes

Attribute Type Values Description
(none) - - \:grpFill\ has no attributes or child elements.

Content Model

\:grpFill\ has no child elements. It is an empty, self-contained element:

xml <a:grpFill/>

Examples

Grouped Shapes with Inherited Fill

<a:grpSp>
  <a:grpSpPr>
    <a:xfrm>
      <a:off x="0" y="0"/>
      <a:ext cx="10000000" cy="7500000"/>
      <a:chOff x="0" y="0"/>
      <a:chExt cx="10000000" cy="7500000"/>
    </a:xfrm>
    <a:solidFill><a:srgbClr val="4472C4"/></a:solidFill>
  </a:grpSpPr>
  <a:sp>
    <a:spPr>
      <a:xfrm><a:off x="500000" y="500000"/><a:ext cx="2000000" cy="2000000"/></a:xfrm>
      <a:grpFill/>
    </a:spPr>
  </a:sp>
</a:grpSp>

Mixed Fills in Group (Some Inherit, Some Override)

<a:grpSp>
  <a:grpSpPr>
    <a:solidFill><a:srgbClr val="ED7D31"/></a:solidFill>
  </a:grpSpPr>
  <a:sp>
    <a:spPr>
      <!-- Shape 1: Inherits orange fill from group -->
      <a:grpFill/>
    </a:spPr>
  </a:sp>
  <a:sp>
    <a:spPr>
      <!-- Shape 2: Overrides with green -->
      <a:solidFill><a:srgbClr val="70AD47"/></a:solidFill>
    </a:spPr>
  </a:sp>
</a:grpSp>

Theme-Based Group Fill (Using Scheme Color)

<a:grpSp>
  <a:grpSpPr>
    <a:solidFill>
      <a:schemeClr val="accent1"/>
    </a:solidFill>
  </a:grpSpPr>
  <a:sp>
    <a:spPr>
      <a:grpFill/>
    </a:spPr>
  </a:sp>
</a:grpSp>

Fill Inheritance Behavior

Fill Inheritance Chain

When a shape specifies \:grpFill\, fill resolves in this order:

  1. Shape explicit fill (e.g., \:solidFill\, \:noFill) — Direct specification
  2. Group fill (\:grpFill) — Parent group’s fill
  3. Master slide theme — Theme-defined fill
  4. Default — No fill (transparent)

Precedence Table

Scenario Result Notes
Shape has \:solidFill\ Uses solid fill Direct specification wins
Shape has \:grpFill\ Inherits group fill Uses parent’s fill properties
Shape has \:noFill\ No fill (transparent) Explicit override
Shape omits fill Inherits from theme Implicit theme inheritance

Usage Patterns

When to Use Group Fill

Scenario Why
Grouped icons All shapes same color, coordinated appearance
Themed collections Shapes update with master slide color changes
Organizational charts Hierarchy with consistent styling
Data visualization Grouped data points with consistent coloring
Templates Placeholder shapes that inherit design colors

Example: Organizational Chart

`xml

`

Interactions with Other Elements

Group Fill + Outline

Group fill controls interior fill; outline (\:ln) remains independent:

<a:grpSp>
  <a:grpSpPr>
    <a:solidFill><a:srgbClr val="4472C4"/></a:solidFill>
  </a:grpSpPr>
  <a:sp>
    <a:spPr>
      <a:grpFill/>
      <a:ln w="19050"><a:solidFill><a:srgbClr val="000000"/></a:solidFill></a:ln>
    </a:spPr>
  </a:sp>
</a:grpSp>

File Size Optimization

Using \:grpFill\ for grouped shapes reduces file size:

Without Group Fill (each shape specifies fill): ` ... ×10 shapes = 10× fill specs `

With Group Fill (1 group fill + inherited): ` ... ×10 shapes = 1 fill + 10 inheritance markers `

Result: Smaller file size, easier maintenance

Notes

Element Characteristics

  • Empty element: No child elements
  • Inheritance marker: Signals “use parent fill”
  • Scope: Only affects current shape, not nested groups
  • Mutually exclusive: Cannot combine with other fill types
  • Overridable: Any explicit fill in shape overrides group fill

Rendering

  • Word: Uses group fill color consistently
  • PowerPoint: Inherits group properties; updates with theme changes
  • Excel: Group fill applied to shape collection
  • Publisher: Propagates fill to all grouped objects

Compatibility

  • Office 2007 and later
  • Consistent across applications
  • Theme-based inheritance works across presentations

Best Practices

  • Use group fill for visual cohesion in grouped shapes
  • Leverage theme colors (\:schemeClr) in group for dynamic theming
  • Override with explicit fills only when necessary
  • Document grouped structure for maintenance
  • Use for templates and master slides