new ContentElement()
Base class for all content elements in the document content tree. It contains
methods to retrieve instances of derived classes via the AsDerivedClass() methods.
The pattern is to retrieve a ElementRef object and then check if it is valid
via the IsValid() method or casting to void*. If it is valid, the actual
derived instance can be accessed through the ElementRef object.
Methods
-
asContentNode()
-
Returns:
A promise that resolves to an object of type: "PDFNet.ContentNode"- Type
- Promise.<Core.PDFNet.ContentNode>
-
asList()
-
Returns:
A promise that resolves to an object of type: "PDFNet.List"- Type
- Promise.<Core.PDFNet.List>
-
asListItem()
-
Returns:
A promise that resolves to an object of type: "PDFNet.ListItem"- Type
- Promise.<Core.PDFNet.ListItem>
-
asParagraph()
-
Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"- Type
- Promise.<Core.PDFNet.Paragraph>
-
asTable()
-
Returns:
A promise that resolves to an object of type: "PDFNet.Table"- Type
- Promise.<Core.PDFNet.Table>
-
asTableCell()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TableCell"- Type
- Promise.<Core.PDFNet.TableCell>
-
asTableRow()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TableRow"- Type
- Promise.<Core.PDFNet.TableRow>
-
asTextRun()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TextRun"- Type
- Promise.<Core.PDFNet.TextRun>
-
getTextStyledElement()
-
Retrieve the TextStyledElement object for manipulating the text style of this content element.
Returns:
A promise that resolves to the TextStyledElement object- Type
- Promise.<Core.PDFNet.TextStyledElement>