[]
Represents a parsed PDF tag (structure element) in the document's logical structure.
An instance of this class is created from a StructElement, and holds a reference to that object in its StructElement property.
public class Element : LogicalStructureItem
Public Class Element
Inherits LogicalStructureItem
Name | Description |
---|---|
Children | Gets the list of current element's child elements. Note that even if the current element has no children, accessing this property initializes the list. To simply check whether the element has any children, use HasChildren. |
ContentItems | Gets the list of content items associated with the current element. Note that even if the current element has no associated content items, accessing this property initializes the list. To simply check whether the element has any associated content items, use HasContentItems. |
HasChildren | Gets a value indicating whether the current element has any children Element objects (the Children list is not empty). Note that even if the current element has no children, accessing Children will initialize it, so using this property is recommended when checking whether an element has any children. |
HasContentItems | Gets a value indicating whether the current element has any content items associated with it (the ContentItems list is not empty). Note that even if there are no associated content items, accessing ContentItems will initialize it, so using this property is recommended when checking whether an element has any associated content items. |
HasItems | Gets a value indicating whether the current element has any children (the Items list is not empty). Note that even if the current element has no children, accessing Items will initialize it, so using this property is recommended when checking whether an element has any children. |
Items | Gets the list of current element's child elements. Note that even if the current element has no children, accessing this property initializes the list. To simply check whether the element has any children, use HasItems. |
LogicalStructure | Gets the document logical structure to which this element belongs. |
Parent | Gets the parent of the current element. |
StructElement | Gets the structure element (PDF tag) that was used to create this element. |
Type | Gets the Type if it is not null. Gets an empty string if Type is null. |
Name | Description |
---|---|
FindChild(Func<Element, bool>, bool) | Iterates over child elements of this Element or its children, and returns an Element that matches a criteria specified via a callback. |
FindContentItem(Func<ContentItemBase, bool>, bool) | Iterates over content items that belong to this Element or its children, and returns a ContentItem that matches a criteria specified via a callback. |
GetFullType() | Builds and returns the dot-delimited full name of this element including all parent elements' names. The result looks like "xxx.yyy.Type". |
GetImages() | Returns the list of PdfImageInfo objects associated with the current element. |
GetParagraphs() | Returns the list of ITextParagraph objects representing the content associated with the current element. |
GetText() | Returns the text associated with this element. This method calls GetParagraphs() and returns an empty string if that method returns null. |