Element

Overview

Element is a class in Aspose.PDF FOSS for .NET.

A node in a PDF’s logical-structure tree (the /StructTreeRoot /K subtree, plus their /K descendants).

This class provides 1 method for working with Element objects in .NET programs. Available methods include: Remove. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: ActualText, Alt, Children, E, Lang, Parent.

Properties

NameTypeAccessDescription
ActualTextstringRead/WriteThe actual text content of this structure element (/ActualText entry).
AltstringRead/WriteThe alternate-text description (/Alt entry), used by assistive technology to read the element aloud.
EstringRead/WriteThe expansion text for an abbreviation (/E entry).
LangstringRead/WriteThe natural-language code for the element’s text content (/Lang entry, e.g.
ChildrenElementCollectionReadChild structure elements held under this element’s /K entry.
ParentElement?ReadThe element this one was attached to, or null when it is a root element.

Methods

SignatureDescription
Remove()Detach this element from its parent (drop it from the parent’s /K array).

See Also