Bewerken

Delen via


Shapes.AddWebVideo Method

Definition

Adds a new web video to the document.

public Microsoft.Office.Interop.Word.Shape AddWebVideo (string EmbedCode, ref object VideoWidth, ref object VideoHeight, ref object PosterFrameImage, ref object Url, ref object Left, ref object Top, ref object Width, ref object Height, ref object Anchor);
abstract member AddWebVideo : string * obj * obj * obj * obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Shape
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 Left As Object, Optional ByRef Top As Object, Optional ByRef Width As Object, Optional ByRef Height As Object, Optional ByRef Anchor As Object) As Shape

Parameters

EmbedCode
String

The HTML code to embed.

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

A string that contains the URL to the web video.

Left
Object

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

Top
Object

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

Width
Object

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

Height
Object

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

Anchor
Object

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.

Returns

Applies to