|Word Developer Reference|
Returns or sets a WdContentControlType that represents the type for a content control. Read/write.
expression An expression that returns a ContentControl object.
You can use the Type property to change the type of a content control from one type to another. However, the ability to change the type of control depends on the original type and on the content inside the content control at the time of the change. All content controls can be changed to rich text or building block gallery type content controls because these types allow arbitrary content. For other types, if the content is valid for the type that you want to change to, then changing the type is allowed. Otherwise, the change is rejected, resulting in a run-time error.
The following example checks to see if the specified content control is a drop-down list box or a combo box, and if it is one of these two types, moves the last item in the list up, so that it becomes the first item in the list.
|Visual Basic for Applications|
- ContentControl Object
- ContentControl Object Members
- How to: Bind a Content Control to a Node in the Data Store
- How to: Bind Controls to a Specific Row in the Data Store When Inserting a Building Block
- How to: Change a Content Control from One Type to Another
- How to: Change the Editability of a Content Control
- How to: Filter the Building Block List in a Content Control
- How to: Insert a Content Control into a Building Block
- How to: Remove Data from the Data Store When Deleting a Content Control
- How to: Set the Building Blocks That You Can Use for a Content Control
- Walkthrough: Connect an Item in the Data Store to a SQL Server Database
- Walkthrough: Connect an Item in the Data Store to a Web Service
- Walkthrough: Connect an Item in the Data Store to an Access Database
- Walkthrough: Connect an Item in the Data Store to an Excel Workbook
- Working with Content Controls