PDFTableCell

public class PDFTableCell : PDFDocumentObject

An instance of a table cell

  • Content of this cell, can be different kinds of data inside a PDFTableContent object.

    Might be nil, meaning the cell can be empty.

    Declaration

    Swift

    public var content: PDFTableContent?
  • Custom style of this particular cell

    Declaration

    Swift

    public var style: PDFTableCellStyle?
  • Alignment of content inside cell

    Declaration

    Swift

    public var alignment: PDFTableCellAlignment
  • Creates a new cell with the optionally given content, alignment and style. If none are given, see defaults.

    Declaration

    Swift

    public init(content: PDFTableContent? = nil, alignment: PDFTableCellAlignment = .center, style: PDFTableCellStyle? = nil)

    Parameters

    content

    PDFTableContent holding different kinds of data, defaults to nil, meaning the cell is empty

    alignment

    PDFTableCellAignment setting the alignment position of the content, defaults to .center

    style

    PDFTableCelStyle for overwriting table wide styling for this particular cell, defaults to nil

Equatable

  • Compares two instances of PDFTableCell for equality

    Declaration

    Swift

    override public func isEqual(to other: PDFDocumentObject) -> Bool

    Parameters

    lhs

    One instance of PDFTableCell

    rhs

    Another instance of PDFTableCell

    Return Value

    true, if attributes, tag, content, alignment and style equal; otherwise false

  • Undocumented

    Declaration

    Swift

    override public func hash(into hasher: inout Hasher)