Condividi tramite


ContentControl.BuildingBlockCategory Property

Gets or sets the category of building blocks that are displayed in a ContentControl that represents a building block gallery.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property BuildingBlockCategory As String
string BuildingBlockCategory { get; set; }

Property Value

Type: System.String
The category of the building blocks that are displayed in the ContentControl.

Remarks

This property is intended to be used only if the Type property of the ContentControl has the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery. Otherwise, this property does nothing.

All building blocks belong to a category and a gallery. Use the BuildingBlockCategory property to specify the category of the building blocks that are displayed by the ContentControl. You can set the value of this property to the Built-In or General categories defined by Microsoft Office Word, or you can specify a custom category.

To specify which gallery of building blocks to display in the ContentControl, use the BuildingBlockType property.

.NET Framework Security

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace