次の方法で共有


ContentControl.BuildingBlockCategory Property

Definition

Gets or sets the category of building blocks that are displayed in a ContentControl that represents a building block gallery.

public:
 property System::String ^ BuildingBlockCategory { System::String ^ get(); void set(System::String ^ value); };
public string BuildingBlockCategory { get; set; }
member this.BuildingBlockCategory : string with get, set
Public Property BuildingBlockCategory As String

Property Value

The category of the building blocks that are displayed in the ContentControl.

Remarks

This property is intended to be used only if the Type property of the ContentControl has the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery. Otherwise, this property does nothing.

All building blocks belong to a category and a gallery. Use the BuildingBlockCategory property to specify the category of the building blocks that are displayed by the ContentControl. You can set the value of this property to the Built-In or General categories defined by Microsoft Office Word, or you can specify a custom category.

To specify which gallery of building blocks to display in the ContentControl, use the BuildingBlockType property.

Applies to