Partager via


FillProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(GradientFill))> _
<ChildElementInfoAttribute(GetType(GroupFill))> _
<ChildElementInfoAttribute(GetType(NoFill))> _
<ChildElementInfoAttribute(GetType(SolidFill))> _
<ChildElementInfoAttribute(GetType(BlipFill))> _
<ChildElementInfoAttribute(GetType(PatternFill))> _
Public Class FillProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As FillProperties
[ChildElementInfoAttribute(typeof(GradientFill))]
[ChildElementInfoAttribute(typeof(GroupFill))]
[ChildElementInfoAttribute(typeof(NoFill))]
[ChildElementInfoAttribute(typeof(SolidFill))]
[ChildElementInfoAttribute(typeof(BlipFill))]
[ChildElementInfoAttribute(typeof(PatternFill))]
public class FillProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • NoFill <a:noFill>

  • SolidFill <a:solidFill>

  • GradientFill <a:gradFill>

  • BlipFill <a:blipFill>

  • PatternFill <a:pattFill>

  • GroupFill <a:grpFill>

[ISO/IEC 29500-1 1st Edition]

20.1.4.2.9 fill (Fill)

This element defines the fill that is applied to the table as a whole. The background of the table can contain a single fill that is the entire size of the table. This can allow for gradient fills, or image fills, which span the entire size of the table.

[Example: Consider the following example of a fill on a table background in DrawingML:

<fill>
<gradFill flip="none" rotWithShape="1">
<gsLst>
<gs pos="0">
<schemeClr val="accent2">
<shade val="75000"/>
</schemeClr>
</gs>
      <gs pos="100000">
<schemeClr val="accent2">
<shade val="75000"/>
<tint val="20000"/>
</schemeClr>
</gs>
</gsLst>
    <lin ang="2700000" scaled="1"/>
<tileRect/>
</gradFill>
</fill>

In this example, we apply a gradient fill to the entire table on the background shape of the table. end example]

Parent Elements

tblBg (§20.1.4.2.25); tcStyle (§20.1.4.2.29)

Child Elements

Subclause

blipFill (Picture Fill)

§20.1.8.14

gradFill (Gradient Fill)

§20.1.8.33

grpFill (Group Fill)

§20.1.8.35

noFill (No Fill)

§20.1.8.44

pattFill (Pattern Fill)

§20.1.8.47

solidFill (Solid Fill)

§20.1.8.54

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

FillProperties Members

DocumentFormat.OpenXml.Drawing Namespace