Skip to content

PdfFlowDocument.ParentStructureElementForContent Property

Gets or sets the structure element that serves as parent for the structure elements in the flow content objects.

C#
public PdfStructureElement ParentStructureElementForContent { get; set; }

Property Value

PdfStructureElement

A PdfStructureElement object representing the parent structure element for the flow content objects added to the document.

Remarks

By default the PdfFlowDocument create a Xfinium.Pdf.LogicalStructure.PdfStandardStructureTypes.Part as parent for structure elements defined by the flow content objects. This Xfinium.Pdf.LogicalStructure.PdfStandardStructureTypes.Part element is a direct child of the Xfinium.Pdf.LogicalStructure.PdfStandardStructureTypes.Document structure element which represents the document and is the root of the structure tree.
The new parent applies only to flow content objects added to the document after this property has been set.
The structure element used as parent must be included explicitly in the document' structure tree.