ContentControl.BuildingBlockType 屬性

定義

取得或設定在 ContentControl 中顯示的建置組塊 (Building Block) 之類型,此類型表示建置組塊陳列庫。

public:
 property Microsoft::Office::Interop::Word::WdBuildingBlockTypes BuildingBlockType { Microsoft::Office::Interop::Word::WdBuildingBlockTypes get(); void set(Microsoft::Office::Interop::Word::WdBuildingBlockTypes value); };
public Microsoft.Office.Interop.Word.WdBuildingBlockTypes BuildingBlockType { get; set; }
member this.BuildingBlockType : Microsoft.Office.Interop.Word.WdBuildingBlockTypes with get, set
Public Property BuildingBlockType As WdBuildingBlockTypes

屬性值

在控制項中顯示的建置組塊類型。

例外狀況

此屬性設定為 Microsoft.Office.Interop.Word.WdBuildingBlockTypes 值,這個值識別無法在 ContentControl 中顯示的建置組塊類別。

備註

只有當 的 ContentControl 屬性具有 值Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGalleryType,才會使用這個屬性。 否則,這個屬性不會執行任何動作。

所有建置組塊都屬於資源庫和類別。 BuildingBlockType使用屬性來指定要在 中顯示的ContentControl建置組塊資源庫。

ContentControl只能顯示建置組塊的特定資源庫。 屬性 BuildingBlockType 只能設定為下列 Microsoft.Office.Interop.Word.WdBuildingBlockTypes 值:

  • wdTypeAutoText

  • wdTypeCustom1

  • wdTypeCustom2

  • wdTypeCustom3

  • wdTypeCustom4

  • wdTypeCustom5

  • wdTypeCustomAutoText

  • wdTypeCustomEquations

  • wdTypeCustomQuickParts

  • wdTypeCustomTables

  • wdTypeEquations

  • wdTypeQuickParts

  • wdTypeTables

若要指定 所 ContentControl顯示之建置組塊的類別,請使用 BuildingBlockCategory 屬性。

適用於