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


AudioFromCD Class

Audio from CD.When the object is serialized out as xml, its qualified name is a:audioCd.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.AudioFromCD

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(StartTime))> _
<ChildElementInfoAttribute(GetType(EndTime))> _
Public Class AudioFromCD _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As AudioFromCD
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(StartTime))]
[ChildElementInfoAttribute(typeof(EndTime))]
public class AudioFromCD : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • StartTime <a:st>

  • EndTime <a:end>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1st Edition]

20.1.3.1 audioCd (Audio from CD)

This element specifies the existence of Audio from a CD. This element is specified within the non-visual properties of an object. The audio shall be attached to an object as this is how it is represented within the document. The actual playing of the sound however is done within the timing node list that is specified under the timing element.

[Example: Consider the following picture object that has an audio from a CD attached to it.

<p:pic>
<p:nvPicPr>
<p:cNvPr id="7" name="Rectangle 6">
<a:hlinkClick r:id="" action="ppaction://media"/>
</p:cNvPr>
    <p:cNvPicPr>
<a:picLocks noRot="1"/>
</p:cNvPicPr>
    <p:nvPr>
<a:audioCd>
<a:st track="1"/>
<a:end track="3" time="65"/>
</a:audioCd>
</p:nvPr>
</p:nvPicPr>
…
</p:pic>

In the above example, we see that there is a single audioCD element attached to this picture. This picture is placed within the document just as a normal picture or shape would be. The id of this picture, namely 7 in this case, is used to refer to this audioCD element from within the timing node list. For this example we see that the audio for this CD starts playing at the 0 second mark on the first track and ends on the 1 minute 5 second mark of the third track. end example]

Parent Elements

nvPr (§19.3.1.33)

Child Elements

Subclause

end (Audio End Time)

§20.1.3.3

extLst (Extension List)

§20.1.2.2.15

st (Audio Start Time)

§20.1.3.5

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

AudioFromCD Members

DocumentFormat.OpenXml.Drawing Namespace