Partager via


Shapes.AddMediaObjectFromEmbedTag Method

Adds a media object from an embedded tag to a Shapes object.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function AddMediaObjectFromEmbedTag ( _
    EmbedTag As String, _
    Left As Single, _
    Top As Single, _
    Width As Single, _
    Height As Single _
) As Shape
'Usage
Dim instance As Shapes
Dim EmbedTag As String
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape

returnValue = instance.AddMediaObjectFromEmbedTag(EmbedTag, _
    Left, Top, Width, Height)
Shape AddMediaObjectFromEmbedTag(
    string EmbedTag,
    float Left,
    float Top,
    float Width,
    float Height
)

Parameters

  • Left
    Type: System.Single
    The distance, in points, from the left edge of the slide to the left edge of the media object.
  • Top
    Type: System.Single
    The distance, in points, from the top edge of the slide to the top edge of the media object.
  • Width
    Type: System.Single
    The width, in points, of the media object.
  • Height
    Type: System.Single
    The height, in points, of the media object.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Shape

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.PowerPoint Namespace