ContentControl.Type Property
Gets or sets a value that specifies the type of content control that the ContentControl represents.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Property Type As WdContentControlType
WdContentControlType Type { get; set; }
Property Value
Type: WdContentControlType
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 |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.