使用Bookmark 对象 使用Bookmarks(索引) (其中index是书签名称或索引号)可返回单个Bookmark对象。 您必须完全匹配拼写 (但不是一定是大小写) 的书签名称。 下面的示例选择名为活动文档中的"temp"的书签。 VB ActiveDocument.Bookmarks("temp").Select 索引号代表选定内容或区域对象中的书签的位置。 该文档对象的索引...
Word 概述 概念 对象模型 概述 AddIn 对象 AddIns 对象 Adjustments 对象 应用程序对象 AutoCaption 对象 AutoCaptions 对象 AutoCorrect 对象 AutoCorrectEntries 对象 AutoCorrectEntry 对象 AutoTextEntries 对象 AutoTextEntry 对象 Axes 对象 Axis 对象 AxisTitle 对象 Bibliography 对象 Bookmark 对象 Bookmark 对象 方法...
IfActiveDocument.Bookmarks.Exists("temp") =TrueThenIfActiveDocument.Bookmarks("temp").Empty =TrueThen_ MsgBox"The Temp bookmark is empty"EndIf 另請參閱 Bookmark 物件 支援和意見反應 有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱Office VBA 支援與...
Word 程序集: Microsoft.Office.Interop.Word.dll 表示单个书签。 C# 复制 [System.Runtime.InteropServices.Guid("00020968-0000-0000-C000-000000000046")] public interface Bookmark 属性 GuidAttribute 注解 Bookmark 对象是 集合的成员Bookmarks。 该书签 集合包含在书签对话框 (插入菜单) 中列出的所有书签...
publicMicrosoft.Office.Interop.Word.Bookmarks Bookmarks {get; } Property Value Bookmarks ABookmarkscollection that represents all the bookmarks inside of theBookmarkcontrol. Examples The following code example adds aBookmarkcontrol with text to the document and then adds another bookmark to the sixth ...
Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 返回一个值,该值指示在其中创建了指定对象的应用程序。 C# publicintCreator {get; } 属性值 Int32 注解 如果在 Microsoft Word 中创建指定的对象,则此属性返回十六进制数字 4D535744,表示字符串“MSWD”。 [!注释] 此值还可以通过常量...
Bookmark 控件是一个具有唯一名称且用于公开事件的书签,可以绑定到数据。 命名空间:Microsoft.Office.Tools.Word 程序集:Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中) 语法 C#复制 [GuidAttribute("716bd356-0f64-430b-9ea0-bde2921a0227")]publicinterfaceBookmark:IBindableComponent,ICom...
Namespace: Microsoft.Office.Tools.Word Assembly: Microsoft.Office.Tools.Word.dll Gets the XML text in the Bookmark control. C# 复制 public Microsoft.Office.Tools.Word.Bookmark_XMLType XML { get; } Property Value Bookmark_XMLType The XML text in the Bookmark control. Examples The ...
A bookmark in Word marks a place that you want to find again easily. You can enter as many bookmarks as you want in your document or Outlook message, and give each one a unique name so they’re easy to identify. To add a bookmark, you first mark t...
Insert a page break to add another page to the Word document. Design the page according to the image below: Be sure to insert the bookmarks as directed. You can find the bookmark command in Word’s Insert tab. After you add both bookmarks, the bookmark dialog box will look like this:...