Shapes.AddWebVideo Method (Word)

Office 2013

Adds a new web video to the document.

Version Added: Word 2013

expression .AddWebVideo(EmbedCode,VideoWidth,VideoHeight,PosterFrameImage,Url,Left,Top,Width,Height,Anchor)

expression A variable that represents a Shapes object.

Parameters

Name

Required/Optional

Data type

Description

EmbedCode

Required

STRING

The HTML code to embed.

VideoWidth

Required

VARIANT

An integer that represents the width of the web video in pixels.

VideoHeight

Required

VARIANT

An integer that represents the height of the web video in pixels.

PosterFrameImage

Optional

VARIANT

A string that points to the file to use as the poster frame for the web video.

Url

Optional

VARIANT

A string that contains the URL to the web video.

Left

Optional

VARIANT

The position, measured in points, of the left edge of the poster frame from the edge of the document.

Top

Optional

VARIANT

The position, measured in points, of the top edge of the poster frame from the edge of the document.

Width

Optional

VARIANT

The width, measured in points, of the poster frame in the document.

Height

Optional

VARIANT

The height, measured in points, of the poster frame in the document.

Anchor

Optional

VARIANT

A Range object that represents the text to which the web video is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the video is positioned relative to the top and left edges of the page.

Return value

SHAPE

Concepts

Other resources

Show:
© 2014 Microsoft