SoundAction Class

Sound Action.When the object is serialized out as xml, its qualified name is p:sndAc.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(EndSoundAction))> _
<ChildElementInfoAttribute(GetType(StartSoundAction))> _
Public Class SoundAction _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As SoundAction
[ChildElementInfoAttribute(typeof(EndSoundAction))]
[ChildElementInfoAttribute(typeof(StartSoundAction))]
public class SoundAction : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • StartSoundAction <p:stSnd>

  • EndSoundAction <p:endSnd>

[ISO/IEC 29500-1 1st Edition]

19.5.69 sndAc (Sound Action)

This element describes a sound action for slide transition. This element specifies that the start of the slide transition is accompanied by the playback of an audio file; the actual audio file used is specified by the snd element (§19.5.68).

[Example: Consider a slide transition with a sound effect. The <sndAc> element should be used as follows:

    <p:transition>
        <p:sndAc>
            <p:stSnd>
                <p:snd r:embed="rId2" r:link="rId3"/>
            </p:stSnd>
        </p:sndAc>
    </p:transition>

end example]

Parent Elements

transition (§19.3.1.50)

Child Elements

Subclause

endSnd (Stop Sound Action)

§19.5.38

stSnd (Start Sound Action)

§19.5.76

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

SoundAction Members

DocumentFormat.OpenXml.Presentation Namespace