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


Slide Class

Presentation Slide. It is the root element of SlidePart.When the object is serialized out as xml, its qualified name is p:sld.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Presentation.Slide

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CommonSlideData))> _
<ChildElementInfoAttribute(GetType(ColorMapOverride))> _
<ChildElementInfoAttribute(GetType(Transition))> _
<ChildElementInfoAttribute(GetType(Timing))> _
<ChildElementInfoAttribute(GetType(SlideExtensionList))> _
Public Class Slide _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As Slide
[ChildElementInfoAttribute(typeof(CommonSlideData))]
[ChildElementInfoAttribute(typeof(ColorMapOverride))]
[ChildElementInfoAttribute(typeof(Transition))]
[ChildElementInfoAttribute(typeof(Timing))]
[ChildElementInfoAttribute(typeof(SlideExtensionList))]
public class Slide : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • CommonSlideData <p:cSld>

  • ColorMapOverride <p:clrMapOvr>

  • Transition <p:transition>

  • Timing <p:timing>

  • SlideExtensionList <p:extLst>

[ISO/IEC 29500-1 1st Edition]

19.3.1.38 sld (Presentation Slide)

This element specifies a slide within a slide list. The slide list is used to specify an ordering of slides.

[Example: Consider the following custom show with an ordering of slides.

<p:custShowLst>
  <p:custShow name="Custom Show 1" id="0">
    <p:sldLst>
      <p:sld r:id="rId4"/>
      <p:sld r:id="rId3"/>
      <p:sld r:id="rId2"/>
      <p:sld r:id="rId5"/>
    </p:sldLst>
  </p:custShow>
</p:custShowLst>

In the above example the order specified to present the slides is slide 4, then 3, 2 and finally 5. end example]

Parent Elements

Root element of PresentationML Slide part

Child Elements

Subclause

clrMapOvr (Color Scheme Map Override)

§19.3.1.7

cSld (Common Slide Data)

§19.3.1.16

extLst (Extension List with Modification Flag)

§19.3.1.20

timing (Slide Timing Information for a Slide Layout)

§19.3.1.48

transition (Slide Transition for a Slide Layout)

§19.3.1.50

Attributes

Description

show (Show Slide in Slide Show)

Specifies that the current slide should be shown in slide show. If this attribute is omitted then a value of true is assumed.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

showMasterPhAnim (Show Master Placeholder Animations)

Specifies whether or not to display animations on placeholders from the master slide.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

showMasterSp (Show Master Shapes)

Specifies if shapes on the master slide should be shown on slides or not.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

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

Slide Members

DocumentFormat.OpenXml.Presentation Namespace