Background Class
Background Formatting.When the object is serialized out as xml, its qualified name is dgm:bg.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Diagrams.Background
Namespace: DocumentFormat.OpenXml.Drawing.Diagrams
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
<ChildElementInfoAttribute(GetType(EffectDag))> _
<ChildElementInfoAttribute(GetType(GroupFill))> _
<ChildElementInfoAttribute(GetType(NoFill))> _
<ChildElementInfoAttribute(GetType(SolidFill))> _
<ChildElementInfoAttribute(GetType(GradientFill))> _
<ChildElementInfoAttribute(GetType(BlipFill))> _
<ChildElementInfoAttribute(GetType(PatternFill))> _
<ChildElementInfoAttribute(GetType(EffectList))> _
Public Class Background _
Inherits OpenXmlCompositeElement
'Uso
Dim instance As Background
[ChildElementInfoAttribute(typeof(EffectDag))]
[ChildElementInfoAttribute(typeof(GroupFill))]
[ChildElementInfoAttribute(typeof(NoFill))]
[ChildElementInfoAttribute(typeof(SolidFill))]
[ChildElementInfoAttribute(typeof(GradientFill))]
[ChildElementInfoAttribute(typeof(BlipFill))]
[ChildElementInfoAttribute(typeof(PatternFill))]
[ChildElementInfoAttribute(typeof(EffectList))]
public class Background : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
DocumentFormat.OpenXml.Drawing.NoFill <a:noFill>
DocumentFormat.OpenXml.Drawing.SolidFill <a:solidFill>
DocumentFormat.OpenXml.Drawing.GradientFill <a:gradFill>
DocumentFormat.OpenXml.Drawing.BlipFill <a:blipFill>
DocumentFormat.OpenXml.Drawing.PatternFill <a:pattFill>
DocumentFormat.OpenXml.Drawing.GroupFill <a:grpFill>
DocumentFormat.OpenXml.Drawing.EffectList <a:effectLst>
DocumentFormat.OpenXml.Drawing.EffectDag <a:effectDag>
[ISO/IEC 29500-1 1ª edición]
21.4.3.1 bg (Background Formatting)
This element defines formatting that can be applied to the background shape of the entire diagram. The background shape can hold formatting options just as a normal shape can hold within DrawingML.
[Example: Consider the following example of a bg in DiagramML:
<bg>
<solidFill>
<schemeClr val="tx1"/>
</solidFill>
<effectLst>
<glow rad="152400">
<schemeClr val="accent1">
<alpha val="75000"/>
</schemeClr>
</glow>
</effectLst>
</bg>
In this example we see a solid fill applied to the background of the diagram along with a glow. end example]
Parent Elements |
---|
dataModel (§21.4.2.10) |
Child Elements |
Subclause |
---|---|
blipFill (Picture Fill) |
§20.1.8.14 |
effectDag (Effect Container) |
§20.1.8.25 |
effectLst (Effect Container) |
§20.1.8.26 |
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_BackgroundFormatting) is located in §A.4.1. end note]
© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.
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.