Partager via


PatternFill Class

Pattern Fill.When the object is serialized out as xml, its qualified name is a:pattFill.

Inheritance Hierarchy

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

Namespace:  DocumentFormat.OpenXml.Drawing
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

Remarks

The following table lists the possible child types:

  • ForegroundColor <a:fgClr>

  • BackgroundColor <a:bgClr>

[ISO/IEC 29500-1 1st Edition]

20.1.8.47 pattFill (Pattern Fill)

This element specifies a pattern fill. A repeated pattern is used to fill the object.

Parent Elements

bg (§21.4.3.1); bgFillStyleLst (§20.1.4.1.7); bgPr (§19.3.1.2); defRPr (§21.1.2.3.2); endParaRPr (§21.1.2.2.3); fill (§20.1.8.28); fill (§20.1.4.2.9); fillOverlay (§20.1.8.29); fillStyleLst (§20.1.4.1.13); grpSpPr (§21.3.2.14); grpSpPr (§20.1.2.2.22); grpSpPr (§20.5.2.18); grpSpPr (§19.3.1.23); ln (§20.1.2.2.24); lnB (§21.1.3.5); lnBlToTr (§21.1.3.6); lnL (§21.1.3.7); lnR (§21.1.3.8); lnT (§21.1.3.9); lnTlToBr (§21.1.3.10); rPr (§21.1.2.3.9); spPr (§21.2.2.197); spPr (§21.3.2.23); spPr (§21.4.3.7); spPr (§20.1.2.2.35); spPr (§20.2.2.6); spPr (§20.5.2.30); spPr (§19.3.1.44); tblPr (§21.1.3.15); tcPr (§21.1.3.17); uFill (§21.1.2.3.12); uLn (§21.1.2.3.14)

Child Elements

Subclause

bgClr (Background color)

§20.1.8.10

fgClr (Foreground color)

§20.1.8.27

Attributes

Description

prst (Preset Pattern)

Specifies one of a set of preset patterns to fill the object.

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

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

PatternFill Members

DocumentFormat.OpenXml.Drawing Namespace