MediaTrim Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.PowerPoint.MediaTrim

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

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class MediaTrim _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As MediaTrim
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class MediaTrim : OpenXmlLeafElement

Remarks

2.5.6 CT_MediaTrim

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

Referenced by: CT_SourceMedia

A complex type that specifies the start and end times for a media.

Attributes:

st : An ST_MediaTime attribute that specifies the start time of the media relative to the beginning of the media. The start time MUST be less than the end time for the media.

end : An ST_MediaTime attribute that specifies the end time of the media relative to the beginning of the media. The end time MUST be greater than the start time for the media and MUST be less than or equal to the length of the media.

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

<xsd:complexType name="CT_MediaTrim">

<xsd:attribute name="st" type="ST_MediaTime" use="optional" default="0"/>

<xsd:attribute name="end" type="ST_MediaTime" use="optional" default="0"/>

</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

MediaTrim Members

DocumentFormat.OpenXml.Office2010.PowerPoint Namespace