次の方法で共有


ContentControl.BuildingBlockType プロパティ

定義

ビルド ブロック ギャラリーを表す ContentControl に表示されるビルド ブロックの種類を取得または設定します。

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

プロパティ値

コントロールに表示されるビルド ブロックの種類。

例外

プロパティが、 で表示できないビルド ブロックのカテゴリを示す ContentControlMicrosoft.Office.Interop.Word.WdBuildingBlockTypes 値に設定されています。

注釈

このプロパティは、 の プロパティ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 使用します。

適用対象