ContentControl.Type Property

Definition

Gets or sets a value that specifies the type of content control that the ContentControl represents.

public Microsoft.Office.Interop.Word.WdContentControlType Type { get; set; }

Property Value

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

Applies to