Fills class
Defines the Fills Class. When the object is serialized out as xml, its qualified name is x:fills.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.Fills
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
fills (Fills)
This element defines the cell fills portion of the Styles part, consisting of a sequence of fill records. A cell fill consists of a background color, foreground color, and pattern to be applied across the cell.
[Example:This cell has a yellow fill:
This is the corresponding XML:
<fill>
<patternFill patternType="solid">
<fgColor rgb="FFFFFF00"/>
<bgColor indexed="64"/>
</patternFill>
</fill>This cell has a yellow fill with a thin horizontal crosshatch pattern applied (patternType = lightGrid):
This is the corresponding XML:
<fill> <patternFill patternType="lightGrid"> <bgColor rgb="FFFFFF00"/> </patternFill> </fill>
end example]
Parent Elements |
|---|
styleSheet (§18.8.39) |
Child Elements | Subclause |
|---|---|
fill (Fill) | §18.8.20 |
Attributes | Description |
|---|---|
count (Fill Count) | Count of fill elements. The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype. |
[Note: The W3C XML Schema definition of this element’s content model (CT_Fills) is located in §A.2. end note]
© ISO/IEC29500: 2008.