![]() Most of the content controls have a corresponding type in the namespace. There are nine different types of content controls that you can add to documents. You cannot use content controls in documents that are saved in the Word 97-2003 document (. You can use content controls only in documents that are saved in the Open XML format. For more information, see How to: Add content controls to Word documents. In VSTO Add-in projects, you can add content controls to any open document at run time. In document-level projects, you can add content controls to your document at design time or at run time. NET Framework, XML elements that are stored in the document, and other data sources. You can bind content controls to database fields, managed objects in the. This is useful if you have information in a document or template that users should be able to read but not edit, or if you want users to be able to edit content controls but not delete them.īind parts of a document or template to data. Prevent users from editing or deleting parts of a document. After the user chooses a date, the UI of the control is hidden, and only the date appears if the user prints the document.Ĭontent controls also help you do the following: You can also set properties of the control to set the regional calendar that is displayed and to specify the date format. When users click the control, the standard date picker UI appears. The border and the title of the control do not appear in printed versions of the document.įor example, if you want the user to enter a date in a section of your document, you can add a date picker content control to the document. When you add a content control to a document, the control is identified by a border, a title, and temporary text that can provide instructions to the user. For more information, see Features available by Office application and project type.įor a related video demonstration, see Bind data to Word 2007 content controls using Visual Studio Tools for the Office system (3.0).Ĭontent controls provide a UI that is optimized for both user input and print. For more information, see Bind data to content controls.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. ![]() For more information, see Protect parts of documents by using content controls.ĭata binding to a data source. Restrictions that prevent users from editing protected sections of the document or template. Once ready, head over to the "References" tab and select "Table of Contents.Applies to: Visual Studio Visual Studio for Mac Visual Studio CodeĬontent controls provide a way for you to design documents and templates that have these features:Ī user interface (UI) that has controlled input like a form. The first thing you need to do is put the cursor where you want the table of contents to appear. Once you've applied your heading styles, it's time to insert your table of contents. You can either apply the heading styles to each section after you've finished the document, or you can add them as you go. You can manage this in two different ways. If you're not happy with the types of heading styles available, you can change the default heading style. In addition to making the document more reader-friendly, a table of contents also makes it easier for the author to go back and add or remove content if necessary.īy default, Word generates a table of contents using the first three built-in heading styles (Heading 1, Heading 2, and Heading 3). To apply heading styles, select the particular style from the "Home" tab. Regardless of the size of your document, using a table of contents can direct the reader to exactly where they need to be.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |