Share via


SoundTarget Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Presentation.EmbeddedWavAudioFileType
        DocumentFormat.OpenXml.Presentation.SoundTarget

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

Syntax

'Declaration
Public Class SoundTarget _
    Inherits EmbeddedWavAudioFileType
'Usage
Dim instance As SoundTarget
public class SoundTarget : EmbeddedWavAudioFileType

Remarks

[ISO/IEC 29500-1 1st Edition]

19.5.70 sndTgt (Sound Target)

This element describes the sound information for a target object.

[Example: Consider a shape with a sound effect animation. The <sndTgt> element should be used as follows:

<p:subTnLst>
  <p:audio>
    <p:cMediaNode>
      <p:cTn display="0" masterRel="sameClick"> … </p:cTn>
      <p:tgtEl>
        <p:sndTgt r:embed="rId2" r:link="rId3"/>
      </p:tgtEl>
    </p:cMediaNode>
  </p:audio>
</p:subTnLst>

end example]

Parent Elements

tgtEl (§19.5.81)

Attributes

Description

embed (Embedded Audio File Relationship ID)

Namespace: .../officeDocument/2006/relationships

Specifies the identification information for an embedded audio file. This attribute is used to specify the location of an object that resides locally within the file. [Note: A list of suggested audio types is provided in §15.2.2. end note]

The possible values for this attribute are defined by the ST_RelationshipId simple type (§22.8.2.1).

name (Sound Name)

Namespace: .../drawingml/2006/main

Specifies the original name or given short name for the corresponding sound. This is used to distinguish this sound from others by providing a human readable name for the attached sound should the user need to identify the sound among others within the UI.

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

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

SoundTarget Members

DocumentFormat.OpenXml.Presentation Namespace