Поделиться через


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: Microsoft.Office.Interop.Word.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

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace