Поделиться через


Fill 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.Fill

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(NoFill))> _
<ChildElementInfoAttribute(GetType(SolidFill))> _
<ChildElementInfoAttribute(GetType(GradientFill))> _
<ChildElementInfoAttribute(GetType(BlipFill))> _
<ChildElementInfoAttribute(GetType(PatternFill))> _
<ChildElementInfoAttribute(GetType(GroupFill))> _
Public Class Fill _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Fill
[ChildElementInfoAttribute(typeof(NoFill))]
[ChildElementInfoAttribute(typeof(SolidFill))]
[ChildElementInfoAttribute(typeof(GradientFill))]
[ChildElementInfoAttribute(typeof(BlipFill))]
[ChildElementInfoAttribute(typeof(PatternFill))]
[ChildElementInfoAttribute(typeof(GroupFill))]
public class Fill : 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.8.28 fill (Fill)

This element specifies a fill which is one of blipFill, gradFill, grpFill, noFill, pattFill or solidFill.

Parent Elements

cont (§20.1.8.20); effectDag (§20.1.8.25)

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

Fill Members

DocumentFormat.OpenXml.Drawing Namespace