Class StructureElement
A single tagged structure element node (/StructElem).
Inheritance
StructureElement
Assembly: DRIT.Pdf.dll
Syntax
public sealed class StructureElement
Properties
AlternateText
Optional alternate text, typically used for figures/images.
Declaration
public string? AlternateText { get; set; }
Property Value
Children
Child structure elements.
Declaration
public IReadOnlyList<StructureElement> Children { get; }
Property Value
Count
Number of direct child elements.
Declaration
public int Count { get; }
Property Value
this[int]
Gets child structure element by zero-based index.
Declaration
public StructureElement this[int index] { get; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
MarkedContentId
Optional MCID used when linking the node to marked content.
Declaration
public int? MarkedContentId { get; }
Property Value
MarkedPage
Optional page reference used with MCID linkage.
Declaration
public Page? MarkedPage { get; }
Property Value
StructureType
Structure role/type (for example P, Span, Link, Table, TR, TD, Note).
Declaration
public string StructureType { get; set; }
Property Value
Title
Optional title/name of this structure node.
Declaration
public string? Title { get; set; }
Property Value
Methods
AddChild(string)
Add a child structure element.
Declaration
public StructureElement AddChild(string structureType)
Parameters
| Type |
Name |
Description |
| string |
structureType |
|
Returns
SetMarkedContent(Page, int)
Associate this element with a marked content identifier on a page.
Declaration
public void SetMarkedContent(Page page, int markedContentId)
Parameters
| Type |
Name |
Description |
| Page |
page |
|
| int |
markedContentId |
|