StructuredDocumentTagBuildingBlockGallery Property |
Namespace: Aspose.Words.Markup
Accessing this property will only work for BuildingBlockGallery and DocPartObj SDT types. It is read-only for SDT of the document part type.
For all other SDT types exception will occur.
Document doc = new Document(); StructuredDocumentTag buildingBlockSdt = new StructuredDocumentTag(doc, SdtType.BuildingBlockGallery, MarkupLevel.Block) { BuildingBlockCategory = "Built-in", BuildingBlockGallery = "Table of Contents" }; doc.FirstSection.Body.AppendChild(buildingBlockSdt); doc.Save(ArtifactsDir + "StructuredDocumentTag.BuildingBlockCategories.docx");