Delen via


ContentControl.BuildingBlockType Property (2007 System)

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

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

Syntax

'Declaration
Public Property BuildingBlockType As WdBuildingBlockTypes
'Usage
Dim instance As ContentControl 
Dim value As WdBuildingBlockTypes 

value = instance.BuildingBlockType

instance.BuildingBlockType = value
public WdBuildingBlockTypes BuildingBlockType { get; set; }
public:
property WdBuildingBlockTypes BuildingBlockType {
    WdBuildingBlockTypes get ();
    void set (WdBuildingBlockTypes value);
}
public function get BuildingBlockType () : WdBuildingBlockTypes 
public function set BuildingBlockType (value : WdBuildingBlockTypes)

Property Value

Type: WdBuildingBlockTypes
One of the WdBuildingBlockTypes values.

Exceptions

Exception Condition
COMException

The property is set to a WdBuildingBlockTypes value that identifies a category of building blocks that cannot be displayed in a ContentControl.

Remarks

This property is intended to be used only if the Type property of the ContentControl has the value WdContentControlTypewdContentControlBuildingBlockGallery. Otherwise, this property does nothing.

All building blocks belong to a gallery and a category. Use the BuildingBlockType property to specify which gallery of building blocks to display in the ContentControl.

A ContentControl can display only certain galleries of building blocks. The BuildingBlockType property can be set only to the following WdBuildingBlockTypes values:

  • wdTypeAutoText

  • wdTypeCustom1

  • wdTypeCustom2

  • wdTypeCustom3

  • wdTypeCustom4

  • wdTypeCustom5

  • wdTypeCustomAutoText

  • wdTypeCustomEquations

  • wdTypeCustomQuickParts

  • wdTypeCustomTables

  • wdTypeEquations

  • wdTypeQuickParts

  • wdTypeTables

To specify the category of building blocks that are displayed by the ContentControl, use the BuildingBlockCategory property.

.NET Framework Security

See Also

Reference

ContentControl Class

ContentControl Members

Microsoft.Office.Tools.Word Namespace