ContentControl.Type 屬性

取得或設定值,這個值會指定 ContentControl 所代表的內容控制項之型別。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word (在 Microsoft.Office.Tools.Word.dll 中)

語法

'宣告
Property Type As WdContentControlType
WdContentControlType Type { get; set; }

屬性值

型別:Microsoft.Office.Interop.Word.WdContentControlType
ContentControl 所表示的內容控制項之型別。

備註

您可以使用 Type 屬性,在執行階段變更 ContentControl 的 UI 和功能。

下表列出 Microsoft.Office.Interop.Word.WdContentControlType 值,以及每一個值所指定之控制項的型別。如需不同內容控制項之型別的詳細資訊,請參閱內容控制項

控制項

wdContentControlBuildingBlockGallery

建置組塊陳列庫。

wdContentControlComboBox

下拉式方塊。

wdContentControlDate

日期選擇器。

wdContentControlGroup

Group

wdContentControlDropdownList

下拉式清單

wdContentControlPicture

圖片

wdContentControlRichText

Rich Text

wdContentControlText

純文字

.NET Framework 安全性

請參閱

參考

ContentControl 介面

Microsoft.Office.Tools.Word 命名空間