共用方式為


CommonMediaNode Class

Common Media Node Properties.When the object is serialized out as xml, its qualified name is p:cMediaNode.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CommonTimeNode))> _
<ChildElementInfoAttribute(GetType(TargetElement))> _
Public Class CommonMediaNode _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As CommonMediaNode
[ChildElementInfoAttribute(typeof(CommonTimeNode))]
[ChildElementInfoAttribute(typeof(TargetElement))]
public class CommonMediaNode : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • CommonTimeNode <p:cTn>

  • TargetElement <p:tgtEl>

[ISO/IEC 29500-1 1st Edition]

19.5.29 cMediaNode (Common Media Node Properties)

This element is used to describe behavior of media elements, such as sound or movies, in an animation.

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

  <p:audio>
    <p:cMediaNode mute="1">
      <p:cTn display="0" masterRel="sameClick">
        <p:stCondLst> … </p:stCondLst>
        <p:endCondLst> … </p:endCondLst>
      </p:cTn>
      <p:tgtEl> … </p:tgtEl>
    </p:cMediaNode>
  </p:audio>

end example]

Parent Elements

audio (§19.5.9); video (§19.5.93)

Child Elements

Subclause

cTn (Common Time Node Properties)

§19.5.33

tgtEl (Target Element)

§19.5.81

Attributes

Description

mute (Mute)

This attribute describes whether the media should be mute.

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

numSld (Number of Slides)

This attribute describes the numbers of slides across which the media should play.

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

showWhenStopped (Show When Stopped)

This attribute describes whether the media should be displayed when it is stopped.

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

vol (Volume)

This attribute describes the volume of the media element.

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

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

CommonMediaNode Members

DocumentFormat.OpenXml.Presentation Namespace