c# 加载dll 重命名_如何使用免费加载项重命名Microsoft Word中的书签

c# 加载dll 重命名

c# 加载dll 重命名

00_lead_image_renaming_a_bookmark

Bookmarks in Word are useful for navigating through your document, allowing you to quickly jump to specific parts of it. You can add and remove bookmarks, but Word does not let you rename them. However, we’ll show you a way around that limitation.

Word中的书签可用于浏览文档 ,使您可以快速跳转到文档的特定部分。 您可以添加和删除书签,但是Word不允许您重命名它们。 但是,我们将向您显示解决此限制的方法。

For example, maybe you initially named your bookmarks Bookmark1, Bookmark2, etc. and now you want to give them more meaningful names. The free add-in, Bookmark Tool, allows you to rename your bookmarks, as well as perform other tasks on your bookmarks. First, download Bookmark Tool and extract the downloaded file. The files are actually Word templates containing macros that provide the functionality for working with bookmarks.

例如,也许您最初将书签命名为Bookmark1,Bookmark2等,现在想给它们起更有意义的名称。 免费的加载项“书签工具”使您可以重命名书签,以及对书签执行其他任务。 首先, 下载书签工具并解压缩下载的文件。 这些文件实际上是包含宏的Word模板,这些宏提供了使用书签的功能。

NOTE: The templates are in the old file format from Word 2003 and earlier (.dot). However, they work just fine in Word 2007 and later versions (which normally use the newer .dotx format).

注意:模板是Word 2003和更早版本(.dot)中的旧文件格式。 但是,它们在Word 2007和更高版本(通常使用较新的.dotx格式)中可以正常工作。

01_extracted_files

The quick and easy way to install and manage Word add-ins is on the Developer tab on the ribbon, so that’s the method we’re going to use to add the Bookmark Tool add-in to Word. If you don’t see the Developer tab, you’ll need to enable it, and then click on it once it’s enabled.

功能区上的“开发人员”选项卡上,安装和管理Word加载项的快速简便方法是我们将用来将“书签工具”加载项添加到Word的方法。 如果没有看到“开发人员”标签,则需要启用它 ,然后在启用后单击它。

02_clicking_developer_tab

In the Add-ins section, click “Word Add-ins”.

在“加载项”部分中,单击“ Word加载项”。

03_clicking_word_addins

The Templates and Add-ins dialog box displays. On the Templates tab, click “Add”.

将显示“模板和加载项”对话框。 在模板选项卡上,单击“添加”。

04_clicking_add

On the Add Template dialog box, navigate to the folder containing the template files you extracted. Select the “MyBookMarkAddin.dot” file and click “OK”.

在“添加模板”对话框上,导航到包含您提取的模板文件的文件夹。 选择“ MyBookMarkAddin.dot”文件,然后单击“确定”。

05_selecting_mybookmarkaddin_template

The template file is added to the list in the Global templates and add-ins section on the Templates tab. Make sure the template file is checked and click “OK”.

模板文件将添加到“模板”选项卡上“全局模板和加载项”部分的列表中。 确保模板文件已选中,然后单击“确定”。

NOTE: If you want to temporarily disable an add-in, you can simply uncheck the add-in on the Templates and Add-ins dialog box, rather than removing it.

注意:如果要暂时禁用外接程序,只需在“模板和外接程序”对话框上取消选中外接程序,而不是删除它即可。

06_clicking_ok_on_templates_and_addins_dialog

By default, Word automatically disables macros to protect you from any potentially unsafe, active content in your documents. A yellow Security Warning message bar displays under the ribbon. We’ve tested these template files and they are safe. So, click “Enable Content” so the macros in the template file you added can run.

默认情况下,Word自动禁用宏,以保护您免受文档中任何潜在的不安全有效内容的侵害。 功能区下方显示一个黄色的“安全警告”消息栏。 我们已经测试了这些模板文件,它们是安全的。 因此,单击“启用内容”,以便可以运行您添加的模板文件中的宏。

07_clicking_enable_content

Click on the Add-ins tab that was added to the ribbon.

单击添加到功能区的“加载项”选项卡。

08_clicking_addins_tab

In the Custom Toolbars section of the Add-ins tab, click “Open Bookmarker”.

在“加载项”选项卡的“自定义工具栏”部分中,单击“打开书签”。

09_clicking_open_bookmarker

The Bookmark Tool dialog box displays. All the bookmarks in the current document display in the list box below the Browse button. Click on the bookmark you want to rename. Word jumps to that bookmark in the document and selects it. Then, select the “Rename selected bookmark” check box.

显示“书签工具”对话框。 当前文档中的所有书签都显示在“浏览”按钮下方的列表框中。 单击要重命名的书签。 Word跳到文档中的该书签并选择它。 然后,选中“重命名所选书签”复选框。

NOTE: You can also use the “Browse” button to browse through your bookmarks.

注意:您也可以使用“浏览”按钮浏览书签。

10_clicking_rename_selected_bookmark

If you haven’t selected a bookmark in the list to rename, you’ll see the following dialog box. Click “OK” and then select a bookmark.

如果您尚未在列表中选择要重命名的书签,则会看到以下对话框。 单击“确定”,然后选择一个书签。

11_no_bookmark_selected

Once you’ve selected a bookmark, enter a new name for that bookmark in the edit box in the Add/Rename Bookmark section and then click “Rename”.

选择书签后,在“添加/重命名书签”部分的编辑框中输入该书签的新名称,然后单击“重命名”。

12_clicking_rename

If you have other bookmarks in the current document you want to rename, follow the same procedure above for each one. Click “Close” when you’re done.

如果您要重命名的当前文档中还有其他书签,请对每个书签执行相同的步骤。 完成后,单击“关闭”。

13_clicking_close

The new names for the bookmarks also display in Word’s Bookmark dialog box. To access bookmarks in Word, click the “Insert” tab.

书签的新名称也会显示在Word的“书签”对话框中。 要在Word中访问书签,请单击“插入”选项卡。

14_clicking_insert_tab

Then, click “Bookmark” in the Links section. You may have to click the “Links” button to access the tools in that section, if you’ve resized your Word window down in size. If your Word window is wide enough, all three tools in the Links section will be available directly on the tab and not as a drop-down menu.

然后,在“链接”部分中单击“书签”。 如果您已经缩小了Word窗口的大小,则可能必须单击“链接”按钮才能访问该部分中的工具。 如果您的Word窗口足够宽,则“链接”部分中的所有三个工具将直接在选项卡上可用,而不是作为下拉菜单使用。

15_clicking_bookmark_in_links_section

The Bookmark dialog box lists all the bookmarks in your document, including the new names you assigned using the Bookmark Tool. You can jump to bookmarks using this standard Bookmark dialog box in Word, but notice that it’s lacking all the other tools provided in the Bookmark Tool.

“书签”对话框列出了文档中的所有书签,包括使用“书签工具”分配的新名称。 您可以使用Word中的此标准“书签”对话框跳到书签,但是请注意,它缺少“书签工具”中提供的所有其他工具。

16_renamed_bookmark

The Bookmark dialog box in word allows you to add new bookmarks to your document by highlighting text in your document while the Bookmark dialog box is open, entering a name for the bookmark in the edit box in the Bookmark name edit box, and clicking “Add”. You can add new bookmarks the same way using the Add/Rename Bookmark section of the Bookmark Tool. In addition, you can move bookmarks with granular precision using the various spinner arrow buttons in the Reposition section and delete bookmarks with or without deleting the text range (if you selected text when creating the bookmark). The Bookmark Tool add-in expands on the bookmark functionality in Word, adding several useful tools.

Word中的“书签”对话框使您可以通过以下方式将新书签添加到文档中:在“书签”对话框打开时突出显示文档中的文本,在“书签名称”编辑框中的编辑框中输入书签的名称,然后单击“添加”。 ”。 您可以使用“书签工具”的“添加/重命名书签”部分以相同的方式添加新书签。 此外,您可以使用“重新放置”部分中的各种微调箭头按钮来精确移动书签,并在删除或不删除文本范围的情况下删除书签(如果在创建书签时选择了文本)。 书签工具加载项在Word中的书签功能上进行了扩展 ,添加了一些有用的工具。

翻译自: https://www.howtogeek.com/249648/how-to-rename-a-bookmark-in-microsoft-word-using-a-free-add-in/

c# 加载dll 重命名

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值