
Adding WordArt to a Word documentĪdding WordArt to a Word document programmatically can be somewhat complicated, as you need the left and top coordinates of where you would like to insert the text. You are also able to add your own pieces of reusable content to this gallery. The Word Quick Parts gallery is a collection of reusable content including document properties and AutoText. private void adxRibbonButtonShowBuiltInProperties_OnClick ( object sender, IRibbonControl control, bool pressed ) Word quick parts

This object is shared amongst the other MS Office applications and can be found in the namespace. To retrieve a list of built-in Word document properties, use the DocumentProperties object. Retrieving a list of built-in Word document properties Office stores a range of standard built-in properties for each document, such as Title, Author and Keywords etc. Moving bookmarked text to a new location in the same document also copies the bookmark, but copying bookmarked text to another location in the same document does not replicate the bookmark.Document properties are available for Microsoft Word, Excel and PowerPoint documents and act as metadata for the documents. For example, if the selected text includes a complete paragraph (including the paragraph marker), and you add some text in a new line or paragraph, the added text becomes part of the selected text for the bookmark.įinally, moving or copying bookmarked text to a new document will copy the bookmarks as well as the text. However, this produces other side effects. The solution to this problem is to anchor the bookmark to selected text (select text and then define the bookmark). 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. It is not unusual to sort the table and have the bookmarks not move with the text, as you might expect. Open the Toolbox and click the Word Controls tab. Scroll through the long list of commands and select View Field Codes from the list. In the list of Categories, select Commands Not in the Ribbon. If the bookmark is a single point, Word moves the insertion point to it if the bookmark has contents, Word selects them.

The Quick Access Toolbar area of the Word Options dialog box. The "unmoving bookmarks" become a real pain if you use them within tables, at the beginning of a column. At the left of the dialog box click Customize (Word 2007) or Quick Access Toolbar (Word 2010, Word 2013, Word 2016). If, however, you position the cursor at the beginning of a bookmarked line and press Enter a few times, the bookmark does not move. For example, if you insert text ahead of a defined bookmark, the bookmark will stay with the original text. It is not always intuitive when this will happen. (See Figure 1.)Ī word of warning with bookmarks: they can move! If you define a bookmark as a location only (in other words, you don't select text before defining the bookmark), and then move the text which appears at that location elsewhere, the bookmark stays where it was it does not move with the text. Choose the Bookmark option from the Insert menu.Alternately, select the text you want named with the bookmark. Position the insertion point where you want the bookmark to be inserted.To insert a bookmark, follow these steps: Names cannot contain spaces or punctuation marks. Names can contain only letters, numbers, and the underscore. Names must begin with a letter of the alphabet.Names for bookmarks must follow these rules: Each file can have up to approximately 450 bookmarks defined. Thus, you can assign bookmarks in different files that use the same name. In Word, bookmarks are saved with the document file.

Once a bookmark is defined, you can use the Go To option from the Edit menu to move the insertion point to the bookmark location. In this way you locate them easily, just like when you put a physical bookmark in a book to save your place. Bookmarks allow you to assign names to text or to positions in your document.
