ContentControl.BuildingBlockType 屬性 (Word)

會傳回或設定代表他們的 WdBuildingBlockTypes 常數的建置組塊的建置區塊內容控制項類型。 讀取/寫入。

語法

expressionBuildingBlockType

表達 會傳回 ContentControl 物件的 運算式。

註解

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:

  • 自訂 1 至自訂 5

  • 自動圖文集

  • 快速組件

  • 自訂自動圖文集

  • 自訂快速組件

  • 方程式

範例

在下列範例中,會建立新的建置區塊內容控制項,並且會指定建置區塊的類型和圖庫。

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

另請參閱

ContentControl 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應