ContentControl.Type Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that specifies the type of content control that the ContentControl represents.
public:
property Microsoft::Office::Interop::Word::WdContentControlType Type { Microsoft::Office::Interop::Word::WdContentControlType get(); void set(Microsoft::Office::Interop::Word::WdContentControlType value); };
public Microsoft.Office.Interop.Word.WdContentControlType Type { get; set; }
member this.Type : Microsoft.Office.Interop.Word.WdContentControlType with get, set
Public Property Type As WdContentControlType
Property Value
The type of content control that the ContentControl represents.
Remarks
You can use the Type property to change the UI and functionality of the ContentControl at run time.
The following table lists the Microsoft.Office.Interop.Word.WdContentControlType
values and the type of control control that each specifies. For more information about the different types of content controls, see Content Controls.
Value | Control |
---|---|
wdContentControlBuildingBlockGallery |
Building block gallery. |
wdContentControlComboBox |
Combo box. |
wdContentControlDate |
Date picker. |
wdContentControlGroup |
Group |
wdContentControlDropdownList |
Drop-down list |
wdContentControlPicture |
Picture |
wdContentControlRichText |
Rich text |
wdContentControlText |
Plain text |