Background Class

Slide Background.When the object is serialized out as xml, its qualified name is p:bg.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(BackgroundStyleReference))> _
<ChildElementInfoAttribute(GetType(BackgroundProperties))> _
Public Class Background _
    Inherits OpenXmlCompositeElement
Dim instance As Background
public class Background : OpenXmlCompositeElement


The following table lists the possible child types:

  • BackgroundProperties <p:bgPr>

  • BackgroundStyleReference <p:bgRef>

[ISO/IEC 29500-1 1st Edition] bg (Slide Background)

This element specifies the background appearance information for a slide. The slide background covers the entire slide and is visible where no objects exist and as the background for transparent objects.

Parent Elements

cSld (§

Child Elements


bgPr (Background Properties)


bgRef (Background Style Reference)




bwMode (Black and White Mode)

Specifies that the background should be rendered using only black and white coloring. That is, the coloring information for the background should be converted to either black or white when rendering the picture.

[Note: No gray is to be used in rendering this background, only stark black and stark white. end note]

The possible values for this attribute are defined by the ST_BlackWhiteMode simple type (§

[Note: The W3C XML Schema definition of this element’s content model (CT_Background) is located in §A.3. 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


Background Members

DocumentFormat.OpenXml.Presentation Namespace