Поделиться через


MediaBookmarks.Add Method

Adds a new MediaBookmark at the specified time and using the specified name.

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

Syntax

'Declaration
Function Add ( _
    Position As Integer, _
    Name As String _
) As MediaBookmark
'Usage
Dim instance As MediaBookmarks
Dim Position As Integer
Dim Name As String
Dim returnValue As MediaBookmark

returnValue = instance.Add(Position, Name)
MediaBookmark Add(
    int Position,
    string Name
)

Parameters

Return Value

Type: Microsoft.Office.Interop.PowerPoint.MediaBookmark

Remarks

The collection is automatically re-sorted incrementally by time. This method returns an error if the bookmark already exists at that position, if the maximum number of bookmarks exceeds 512, or if the user tries to assign a name that has a length greater than 255 characters.

See Also

Reference

MediaBookmarks Interface

MediaBookmarks Members

Microsoft.Office.Interop.PowerPoint Namespace