![]() ![]() Returns the parent object of the specified ContentControlListEntries object.Īdds a new list item to a drop-down list or combo box content control and returns a ContentControlListEntry object.Ĭlears all items from a drop-down list or combo box content control. Individual content controls can contain content such as dates, lists, or paragraphs of formatted text. A ContentControl object is a mutable control that can represent any of the eight types of content controls that you can use in Microsoft Office Word. Returns the specified item in the collection. Content controls are Microsoft Word entities that act as containers for specific content in a document. To set the placeholder text, use the SetPlaceholderText method. The placeholder text is displayed until a user edits the control, the control is populated with data from a data source, or the controls contents are deleted. For example, if you create a ContentControl that initially has the functionality of a plain text control, you can change it at run time so that it behaves like a combo box. Returns a 32-bit integer that indicates the application in which the add-in was created. The text that is displayed in the control until the text is changed by a user action or some other operation. A ContentControl object is a mutable control that can represent any of the eight types of content controls that you can use in Microsoft Office Word. Returns the number of items in the ContentControlListEntries collection. Individual content controls can contain content such as dates, lists, or paragraphs of formatted text. Content controls are Microsoft Word entities that act as containers for specific content in a document. Returns an _Application object that represents the Microsoft Word application. That anomaly (i.e., bug) is this: When content controls are comingled with legacy form field checkboxes, the content controls are 'locked' after a legacy checkbox gets the focus. Using content controls to structure a document. Have spent many hours on the internet searching for answers and can find nothing that works or works consistently. Microsoft makes no warranties, express or implied, with respect to the information provided here. Is there a way to bookmark the content control and use the bookmark with a cross-reference field to pull the contents to other locations, including header/footers in the document. For more information, see Adding Controls to Office Documents at Run Time. This is useful when you create a ContentControl at run time, and you want to recreate the same control the next time the document is opened. The following example clears all items from the first content control in the active document. Important Some information relates to prerelease product that may be substantially modified before it’s released. Use this method to add a new ContentControl that is based on a native content control in the document at run time. ![]() Use the Clear() method to remove all items from a drop-down list or combo box. Use the Item method or the DropdownListEntries property of a ContentControl object to access an individual list item within a collection. Use the Add(String, String, Int32) method to add an item to a drop-down list or combo box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |