BuildingBlockTypes 物件 (Word)
表示 BuildingBlockType 物件的集合。
註解
建置組塊類型是由 WdBuildingBlockTypes 常 數表示。 使用 Item 方法可存取 BuildingBlockTypes 集合中的特定類型。
若要迴圈查看不同的建置組塊類型,請使用 For 迴圈搭配 Count 屬性。 下列範例會迴圈查看建置組塊類型,並在 [即時運算 視窗] 中列印名稱。 (此範例會假設 即時運算] 視窗 為可見)。
Dim objTemplate As Template
Dim intCount As Integer
Dim objBBT As BuildingBlockType
Set objTemplate = Templates(1)
For intCount = 1 To objTemplate.BuildingBlockTypes.Count
Set objBBT = objTemplate.BuildingBlockTypes(intCount)
Debug.Print objBBT.Name
Next
如需建置組塊的詳細資訊,請參閱使用建置組塊。
方法
屬性
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。