WdContentControlType 枚举

定义

指示内容控件的类型。

public enum class WdContentControlType
[System.Runtime.InteropServices.Guid("D837E0A6-EB0E-3F7F-B8BE-9C0F05401CCD")]
public enum WdContentControlType
type WdContentControlType = 
Public Enum WdContentControlType
继承
WdContentControlType
属性

字段

wdContentControlBuildingBlockGallery 5

指定生成块库内容控件。

wdContentControlCheckBox 8

指定复选框内容控件。

wdContentControlComboBox 3

指定组合框内容控件。

wdContentControlDate 6

指定日期内容控件。

wdContentControlDropdownList 4

指定下拉列表内容控件。

wdContentControlGroup 7

指定组内容控件。

wdContentControlPicture 2

指定图片内容控件。

wdContentControlRepeatingSection 9

指定重复的部分内容控件。

wdContentControlRichText 0

指定 RTF 内容控件。

wdContentControlText 1

指定文本内容控件。

注解

使用 T:Microsoft.Office.Interop。Word。WdContentControlType 常量用于使用Microsoft.Office.Interop.Word.ContentControls.Add集合的 ContentControls 方法创建新的内容控件,或使用它来确定现有内容控件的类型,或者通过使用 Type 对象的 属性ContentControl将内容控件更改为另一种类型。

适用于