Edit

Share via


InlineShapes.AddWebVideo Method

Definition

Adds a new web video to the document.

public Microsoft.Office.Interop.Word.InlineShape AddWebVideo (string EmbedCode, ref object VideoWidth, ref object VideoHeight, ref object PosterFrameImage, ref object Url, ref object Range);
abstract member AddWebVideo : string * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.InlineShape
Public Function AddWebVideo (EmbedCode As String, ByRef VideoWidth As Object, ByRef VideoHeight As Object, Optional ByRef PosterFrameImage As Object, Optional ByRef Url As Object, Optional ByRef Range As Object) As InlineShape

Parameters

EmbedCode
String

The embed code for the video.

VideoWidth
Object

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

VideoHeight
Object

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

PosterFrameImage
Object

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

Url
Object

The URL to the video.

Range
Object

The range at which to insert the web video. If Range is omitted, the current selection is used.

Returns

Applies to