Share via


ContentControl.BuildingBlockCategory Property

Word Developer Reference

Returns or sets a String that represents the category for a building block content control. Read/write.

Version Information
 Version Added:  Word 2007

Syntax

expression.BuildingBlockCategory

expression   An expression that returns a ContentControl object.

Remarks

This property applies only to building block content controls and corresponds with the Category option in the Content Control Properties dialog box. You can set this property to any string; however, if you set it to a string for which there is no corresponding category, the value of the Category option is set to "(All Categories)".

Example

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

Visual Basic for Applications
  Dim objBB As ContentControl

Set objBB = Selection.ContentControls.Add(wdContentControlBuildingBlockGallery)

objBB.BuildingBlockType = wdTypeEquations objBB.BuildingBlockCategory = "General"

See Also