BuildingBlockCategory
Contenu
[
Cacher
]StructuredDocumentTag.BuildingBlockCategory property
Spécifie la catégorie du bloc de construction pour ceTSD node. Ne peut pas êtrenul
.
public string BuildingBlockCategory { get; set; }
Remarques
L’accès à cette propriété ne fonctionnera que pourBuildingBlockGallery et DocPartObj Types SDT. Il est en lecture seule pourTSD du type de partie de document.
Pour tous les autres types de SDT, une exception se produira.
Exemples
Montre comment insérer une balise de document structuré en tant que bloc de construction et définir sa catégorie et sa galerie.
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");
Voir également
- class StructuredDocumentTag
- espace de noms Aspose.Words.Markup
- Assemblée Aspose.Words