Freigeben über


Fills-Klasse

Fills.When the object is serialized out as xml, its qualified name is x:fills.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.Fills

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Fill))> _
Public Class Fills _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Fills
[ChildElementInfoAttribute(typeof(Fill))]
public class Fills : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • Fill <x:fill>

[ISO/IEC 29500-1 1. Ausgabe]

18.8.21 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:

DocumentFormat.OpenXml.Spreadsheet.Fills-image001

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):

DocumentFormat.OpenXml.Spreadsheet.Fills-image002

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

Fills-Member

DocumentFormat.OpenXml.Spreadsheet-Namespace