共用方式為


ControlCollection.AddBookmark Method (Bookmark, String)

Adds a new Microsoft.Office.Tools.Word.Bookmark control to the document at the location of the existing Microsoft.Office.Interop.Word.Bookmark specified.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Function AddBookmark ( _
    bookmark As Bookmark, _
    name As String _
) As Bookmark
Bookmark AddBookmark(
    Bookmark bookmark,
    string name
)

Parameters

Return Value

Type: Microsoft.Office.Tools.Word.Bookmark
The Microsoft.Office.Tools.Word.Bookmark control that was added to the ControlCollection instance.

.NET Framework Security

See Also

Reference

ControlCollection Interface

AddBookmark Overload

Microsoft.Office.Tools.Word Namespace