Media Class

Defines the Media Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is p14:media.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.PowerPoint.Media

Namespace:  DocumentFormat.OpenXml.Office2010.PowerPoint
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ExtensionList), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(MediaFade), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(MediaBookmarkList), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(MediaTrim), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class Media _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Media
[ChildElementInfoAttribute(typeof(ExtensionList), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(MediaFade), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(MediaBookmarkList), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(MediaTrim), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class Media : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • MediaTrim <p14:trim>

  • MediaFade <p14:fade>

  • MediaBookmarkList <p14:bmkLst>

  • ExtensionList <p14:extLst>

2.3.11 media

Target namespace: https://schemas.microsoft.com/office/2007/6/19/audiovideo

A CT_Media element that specifies a media object. See section 2.2.4 for how this element integrates with ISO/IEC-29500:2008.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="media" type="CT_Media"/>

See section 5.2 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.5.11 CT_Media

Target namespace: https://schemas.microsoft.com/office/2007/6/19/audiovideo

Referenced by: media

A complex type that specifies a media object.

Child Elements:

srcMedia : A CT_SourceMedia element that specifies a media file and its associated parameters.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_Media">

<xsd:sequence>

<xsd:element name="srcMedia" type="CT_SourceMedia" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

See section 5.2 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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

Media Members

DocumentFormat.OpenXml.Office2010.PowerPoint Namespace