مشاركة عبر


ContentControl.BuildingBlockType الخاصية

الحصول أو تعيين النوع إنشاء? الكتل التي يتم عرضها في ContentControlالذي يمثل إنشاء? حظر المعرض.

مساحة الاسم:  Microsoft.Office.Tools.Word
التجميع:  Microsoft.Office.Tools.Word (في Microsoft.Office.Tools.Word.dll)

بناء الجملة

'إقرار
Property BuildingBlockType As WdBuildingBlockTypes
    Get
    Set
WdBuildingBlockTypes BuildingBlockType { get; set; }

قيمة الخاصية

النوع: Microsoft.Office.Interop.Word.WdBuildingBlockTypes
النوع إنشاء? الكتل التي يتم عرضها في عنصر التحكم.

استثناءات

استثناء: شرط
COMException

خاصية هو تعيين إلى Microsoft.Office.Interop.Word.WdBuildingBlockTypesالقيمة تعرف فئة لكتل الإنشاء التي لا يمكن أن يكون dهوplayed في ContentControl.

ملاحظات

Th هو الخاصية هو مخصصة للاستخدام فقط في حالة Typeخاصية ContentControlبالقيمة Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery. وإلا، هذه خاصية لا شيء.

الجميع إنشاء? كتل تنتمي إلى معرض وفئة. استخدام BuildingBlockTypeخاصية لتحديد أي معرض إنشاء? كتل لعرضها في ContentControl.

ContentControlأن يعرض فقط بعض معارض إنشاء? كتل. BuildingBlockTypeيمكن تعيين خاصية فقط إلى ما يلي Microsoft.Office.Interop.Word.WdBuildingBlockTypesقيم:

  • wdTypeAutoText

  • wdTypeCustom1

  • wdTypeCustom2

  • wdTypeCustom3

  • wdTypeCustom4

  • wdTypeCustom5

  • wdTypeCustomAutoText

  • wdTypeCustomEquations

  • wdTypeCustomQuickParts

  • wdTypeCustomTables

  • wdTypeEquations

  • wdTypeQuickParts

  • wdTypeTables

لتعيين فئة لكتل الإنشاء التي يتم عرضها بواسطة ContentControl، استخدم BuildingBlockCategoryخاصية.

أمن NET Framework.

راجع أيضًَا

المرجع

ContentControl واجهة

ContentControl الأعضاء

Microsoft.Office.Tools.Word مساحة الاسم