BuildingBlockGallery
StructuredDocumentTag.BuildingBlockGallery property
Gibt den Typ des Bausteins dafür anSDT . Kann nicht seinNull
.
public string BuildingBlockGallery { get; set; }
Bemerkungen
Der Zugriff auf diese Eigenschaft funktioniert nur fürBuildingBlockGallery and DocPartObj SDT-Typen. Es ist schreibgeschützt fürSDT des Dokumentteiltyps.
Bei allen anderen SDT-Typen tritt eine Ausnahme auf.
Beispiele
Zeigt, wie man ein strukturiertes Dokument-Tag als Baustein einfügt und seine Kategorie und Galerie festlegt.
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");
Siehe auch
- class StructuredDocumentTag
- namensraum Aspose.Words.Markup
- Montage Aspose.Words