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
声明
<ChildElementInfoAttribute(GetType(CommonTimeNode))> _
<ChildElementInfoAttribute(GetType(TargetElement))> _
Public Class CommonMediaNode _
Inherits OpenXmlCompositeElement
用法
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 第 1 个版本]
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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。
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.