Partager via


Background Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.Background

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(BackgroundStyleReference))> _
<ChildElementInfoAttribute(GetType(BackgroundProperties))> _
Public Class Background _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Background
[ChildElementInfoAttribute(typeof(BackgroundStyleReference))]
[ChildElementInfoAttribute(typeof(BackgroundProperties))]
public class Background : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • BackgroundProperties <p:bgPr>

  • BackgroundStyleReference <p:bgRef>

[ISO/IEC 29500-1 1st Edition]

19.3.1.1 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 (§19.3.1.16)

Child Elements

Subclause

bgPr (Background Properties)

§19.3.1.2

bgRef (Background Style Reference)

§19.3.1.3

Attributes

Description

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 (§20.1.10.10).

[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

Reference

Background Members

DocumentFormat.OpenXml.Presentation Namespace