ContentControl.BuildingBlockCategory 属性

获取或设置在表示生成块库的 ContentControl 中显示的生成块的类别。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)

语法

声明
Property BuildingBlockCategory As String
    Get
    Set
string BuildingBlockCategory { get; set; }

属性值

类型:System.String
ContentControl 中显示的生成块的类别。

备注

此属性只在 ContentControlType 属性的值为 Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery 时使用。 否则,此属性不起任何作用。

所有构造块都属于一个类别和一个库。 使用 BuildingBlockCategory 属性可指定由 ContentControl 显示的生成块的类别。 可将此属性的值设置为 Microsoft Office Word 定义的 Built-In 或 General 类别,也可指定自定义类别。

若要指定在 ContentControl 中显示哪个生成块库,请使用 BuildingBlockType 属性。

.NET Framework 安全性

请参见

参考

ContentControl 接口

Microsoft.Office.Tools.Word 命名空间