ContentControl.Type Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property Type As WdContentControlType
'Usage
Dim instance As ContentControl
Dim value As WdContentControlType
value = instance.Type
instance.Type = value
public WdContentControlType Type { get; set; }
public:
property WdContentControlType Type {
WdContentControlType get ();
void set (WdContentControlType value);
}
public function get Type () : WdContentControlType
public function set Type (value : WdContentControlType)
Property Value
Type: WdContentControlType
A WdContentControlType value that specifies 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 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.