MovieReference Class

Defines the MovieReference Class.When the object is serialized out as xml, its qualified name is w:movie.

Inheritance Hierarchy


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


Public Class MovieReference _
    Inherits RelationshipType
Dim instance As MovieReference
public class MovieReference : RelationshipType


[ISO/IEC 29500-1 1st Edition] movie (Embedded Video)

This element specifies a location within a document where the specified parent image shall be treated as a static placeholder for an embedded movie. [Note: A list of suggested video types in provided in §15.2.17. end note]The specified movie file's contents should be displayed when requested at this location in the document. The location of the embedded movie to be displayed when supported shall be specified by the relationship whose Id attribute matches the id attribute on this element.

If the relationship type of the relationship specified by this element is not, or is not present, then the document shall be considered non-conformant. If an application cannot process external content of the content type specified by the targeted part, then it can be ignored.

[Example: Consider a WordprocessingML document which contains a DrawingML shape holding the static image for a movie:

  <w:movie r:id="rIdMovie" />

The movie element specifies that the part targeted by the relationship with an ID of rIdMovie must be imported at the beginning of the document. Examining the contents of the corresponding relationship part item, we can see the targets for that relationship:

<Relationships … >
<Relationship Id="rIdMovie" TargetMode="Internal" Type="" Target="" />

The corresponding relationship part item shows that the movie file is located next to the main document and is named end example]

Parent Elements

object (§



id (Relationship to Part)

Namespace: .../officeDocument/2006/relationships

Specifies the relationship ID to a specified part.

The specified relationship shall match the relationship type required by the parent element:

  • for the contentPart element

  • for the footerReference element

  • for the headerReference element

  • for the embedBold, embedBoldItalic, embedItalic, or embedRegular elements

  • for the printerSettings element

  • for the longDesc or hyperlink element

[Example: Consider an XML element which has the following id attribute:

<… r:id="rId10" />

The markup specifies the associated relationship part with relationship ID rId1 contains the corresponding relationship information for the parent XML element. end example]

The possible values for this attribute are defined by the ST_RelationshipId simple type (§

[Note: The W3C XML Schema definition of this element’s content model (CT_Rel) is located in §A.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


MovieReference Members

DocumentFormat.OpenXml.Wordprocessing Namespace