Show / Hide Table of Contents

Class ContentElement

Inheritance
object
ContentElement
ContentNode
TextRun
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: pdftron.Layout
Assembly: PDFTronDotNet.dll
Syntax
public class ContentElement

Constructors

ContentElement(IntPtr, object)

Declaration
public ContentElement(IntPtr impl, object reference)
Parameters
Type Name Description
IntPtr impl
object reference

Fields

m_impl

Declaration
protected IntPtr m_impl
Field Value
Type Description
IntPtr

m_ref

Declaration
protected object m_ref
Field Value
Type Description
object

Methods

AsContentNode()

Retrieves the associated ContentNode object if this content element is a content node.

Declaration
public ContentNode AsContentNode()
Returns
Type Description
ContentNode

The ContentNode object if this element is a content node; otherwise, null.

AsList()

Retrieves the associated List object if this content element is a list.

Declaration
public List AsList()
Returns
Type Description
List

The List object if this element is a list; otherwise, null.

AsListItem()

Retrieves the associated ListItem object if this content element is a list item.

Declaration
public ListItem AsListItem()
Returns
Type Description
ListItem

The ListItem object if this element is a list item; otherwise, null.

AsParagraph()

Retrieves the associated Paragraph object if this content element is a paragraph.

Declaration
public Paragraph AsParagraph()
Returns
Type Description
Paragraph

The Paragraph object if this element is a paragraph; otherwise, null.

AsTable()

Retrieves the associated Table object if this content element is a table.

Declaration
public Table AsTable()
Returns
Type Description
Table

The Table object if this element is a table; otherwise, null.

AsTableCell()

Retrieves the associated TableCell object if this content element is a table cell.

Declaration
public TableCell AsTableCell()
Returns
Type Description
TableCell

The TableCell object if this element is a table cell; otherwise, null.

AsTableRow()

Retrieves the associated TableRow object if this content element is a table row.

Declaration
public TableRow AsTableRow()
Returns
Type Description
TableRow

The TableRow object if this element is a table row; otherwise, null.

AsTextRun()

Retrieves the associated TextRun object if this content element is a text run.

Declaration
public TextRun AsTextRun()
Returns
Type Description
TextRun

The TextRun object if this element is a text run; otherwise, null.

GetTextStyledElement()

Retrieves the TextStyledElement object for manipulating the text style of this content element.

Declaration
public TextStyledElement GetTextStyledElement()
Returns
Type Description
TextStyledElement

The TextStyledElement object for manipulating text style.

In This Article
Back to top Generated by DocFX