Bagikan melalui


ContentControl.BuildingBlockType Properti

Definisi

Mendapatkan atau mengatur jenis blok penyusun yang ditampilkan dalam yang ContentControl mewakili galeri blok penyusun.

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

Nilai Properti

Jenis blok penyusun yang ditampilkan dalam kontrol.

Pengecualian

Properti diatur ke Microsoft.Office.Interop. Word. Nilai WdBuildingBlockTypes yang mengidentifikasi kategori blok penyusun yang tidak dapat ditampilkan dalam ContentControl.

Keterangan

Properti ini dimaksudkan untuk digunakan hanya jika Type properti memiliki ContentControl nilai Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery. Jika tidak, properti ini tidak melakukan apa pun.

Semua blok penyusun milik galeri dan kategori. BuildingBlockType Gunakan properti untuk menentukan galeri blok penyusun mana yang akan ditampilkan di ContentControl.

Hanya ContentControl dapat menampilkan galeri tertentu dari blok penyusun. Properti BuildingBlockType hanya dapat diatur ke nilai berikut Microsoft.Office.Interop.Word.WdBuildingBlockTypes :

  • wdTypeAutoText

  • wdTypeCustom1

  • wdTypeCustom2

  • wdTypeCustom3

  • wdTypeCustom4

  • wdTypeCustom5

  • wdTypeCustomAutoText

  • wdTypeCustomEquations

  • wdTypeCustomQuickParts

  • wdTypeCustomTables

  • wdTypeEquations

  • wdTypeQuickParts

  • wdTypeTables

Untuk menentukan kategori blok penyusun yang ditampilkan oleh ContentControl, gunakan BuildingBlockCategory properti .

Berlaku untuk