![]() ![]() ![]() ![]() PictureĪ picture control displays an image. For more information, see the GroupContentControl type. A group control can contain any document items, such as text, tables, graphics, and other content controls. GroupĪ group control defines a protected region of a document that users cannot edit or delete. For more information, see the DropDownListContentControl type. Unlike a combo box, the drop-down list does not let users add or edit items. Drop-down listĪ drop-down list displays a list of items that users can select. For more information, see the DatePickerContentControl type. You can use regional calendars and different date formats. The calendar appears when the end user clicks the drop-down arrow in the control. Date pickerĪ date picker provides a calendar UI for selecting a date. For more information, see the ComboBoxContentControl type. Unlike a drop-down list, the combo box enables users to add their own items. Combo boxĪ combo box displays a list of items that users can select. For more information, see Check box content controls in Word projects. However, you can still create a check box content control by adding a generic ContentControl to a document programmatically. In other words, there is no CheckBoxContentControl type. Unlike the other types of content controls, the Visual Studio Tools for Office runtime does not provide a specific type that represents a check box content control. Check boxĪ check box provides a UI that represents a binary state: selected or cleared. For more information about building blocks, see What's new for developers in Word 2007. For more information, see the BuildingBlockGaller圜ontentControl type. A document building block is a piece of content that has been created to be used multiple times, such as a common cover page, a formatted table, or a header. Build block galleryĪ building block gallery enables users to select from a list of document building blocks to insert into a document. For a walkthrough that demonstrates how to use each of the available content controls, see Walkthrough: Create a template by using content controls. You can also use a generic ContentControl, which can represent any of the available content controls. 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. Content 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |