Fill Class

Fill.When the object is serialized out as xml, its qualified name is x:fill.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Fill : OpenXmlCompositeElement

The following table lists the possible child types:

  • PatternFill <x:patternFill>

  • GradientFill <x:gradientFill>

[ISO/IEC 29500-1 1st Edition]

18.8.20 fill (Fill)

This element specifies fill formatting.

Parent Elements

dxf (§18.8.14); fills (§18.8.21); ndxf (§; odxf (§

Child Elements


gradientFill (Gradient)


patternFill (Pattern)


[Note: The W3C XML Schema definition of this element’s content model (CT_Fill) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions