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.<PDFNet.ContentNode>
-
asList()
-
Returns:
A promise that resolves to an object of type: "PDFNet.List"- Type
- Promise.<PDFNet.List>
-
asListItem()
-
Returns:
A promise that resolves to an object of type: "PDFNet.ListItem"- Type
- Promise.<PDFNet.ListItem>
-
asParagraph()
-
Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"- Type
- Promise.<PDFNet.Paragraph>
-
asTable()
-
Returns:
A promise that resolves to an object of type: "PDFNet.Table"- Type
- Promise.<PDFNet.Table>
-
asTableCell()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TableCell"- Type
- Promise.<PDFNet.TableCell>
-
asTableRow()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TableRow"- Type
- Promise.<PDFNet.TableRow>
-
asTextRun()
-
Returns:
A promise that resolves to an object of type: "PDFNet.TextRun"- Type
- Promise.<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.<PDFNet.TextStyledElement>