SoundAction Class
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

SoundAction Class

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

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

public class SoundAction : OpenXmlCompositeElement

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:snd r:embed="rId2" r:link="rId3"/>

end example]

Parent Elements

transition (§

Child Elements


endSnd (Stop Sound Action)


stSnd (Start Sound Action)


[Note: The W3C XML Schema definition of this element’s content model (CT_TransitionSoundAction) is located in §A.3. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2016 Microsoft