![]() ![]() In the Bookmark dialog box, type the name of the new bookmark, and click Add. On the Insert tab of the Ribbon, in the Links group, click the Bookmark button. In the document that is hosted in the Visual Studio designer, put the cursor where you want to add the bookmark, or select the text that you want the bookmark to enclose. To add a Bookmark control to a document in Word If you do not want to keep the default bookmark name, you can change the name in the Properties window. Select the text or other items you want to include in the bookmark. Open the Toolbox and click the Word Controls tab. To add a Bookmark control to a document from the Toolbox For more information, see Personalize the IDE. The Visual Studio edition that you have and the settings that you use determine these elements. Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. For more information, see Data binding and Windows Forms. You can add the host control in the same way you would add a Windows Form control from the Data Sources window. ![]() This is useful when you want to bind the control to data at the same time. You can drag the Bookmark control to your document from the Data Sources window. The advantage of adding it this way is that you can name your control at the time you create it. ![]() You can add the Bookmark control to your document in the same manner you would add the native bookmark. You might want to choose this way if you are already using the Toolbox to add Windows Forms controls to your document. You can drag the Bookmark control from the Toolbox to your document. There are several ways to add Bookmark controls to the document in a document-level project at design time: This topic describes the following tasks:Īdd Bookmark controls at run time in a document-level projectĪdd Bookmark controls at run time in a VSTO Add-in projectįor more information about Bookmark controls, see Bookmark control. For more information, see Features available by Office application and project type. In VSTO Add-in projects, you can add Bookmark controls to any open document at run time.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. In document-level projects, you can add Bookmark controls to the document in your project at design time or at run time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |