ContentControl.BuildingBlockType Property (Word)

Returns or sets a WdBuildingBlockTypes constant that represents they type of building block for a building block content control. Read/write.

Syntax

expression. BuildingBlockType

expression An expression that returns a ContentControl object.

Remarks

This property applies only to building block content controls and corresponds with the Gallery option in the Content Control Properties dialog box. You can set this property only for the following building block types:

  • Custom 1 through Custom 5

  • Autotext

  • Quick Parts

  • Custom Autotext

  • Custom Quick Parts

  • Equations

Example

The following example creates a new building block content control and specifies the type of building block and the gallery.

Dim objBB As ContentControl 
 
Set objBB = Selection.ContentControls.Add(wdContentControlBuildingBlockGallery) 
 
objBB.BuildingBlockType = wdTypeEquations 
objBB.BuildingBlockCategory = "General"

See also

ContentControl Object