Freigeben über


PatternFill-Klasse

Pattern.When the object is serialized out as xml, its qualified name is x:patternFill.

Vererbungshierarchie

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

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

Syntax

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

Hinweise

The following table lists the possible child types:

  • ForegroundColor <x:fgColor>

  • BackgroundColor <x:bgColor>

[ISO/IEC 29500-1 1. Ausgabe]

18.8.32 patternFill (Pattern)

This element is used to specify cell fill information for pattern and solid color cell fills. For solid cell fills (no pattern), fgColor is used. For cell fills with patterns specified, then the cell fill color is specified by the bgColor element.

Parent Elements

fill (§18.8.20)

Child Elements

Subclause

bgColor (Background Color)

§18.8.3

fgColor (Foreground Color)

§18.8.19

Attributes

Description

patternType (Pattern Type)

Specifies the fill pattern type (including solid and none) Default is none, when missing.

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

[Note: The W3C XML Schema definition of this element's content model (CT_PatternFill) 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

PatternFill-Member

DocumentFormat.OpenXml.Spreadsheet-Namespace