Cell
open class Cell : CellProtocol
Represents a cell in a TableNode instance. This class inherits CellProtocol.
-
Initializes a new instance of the Cell class.
Declaration
Swift
public required init()
Return Value
The newly created Cell object.
-
Initializes a new instance of the Cell class with the properties of the specified Cell.
Declaration
Swift
public init(source: Cell)
Parameters
source
The Cell whose properties are copied to the new Cell.
Return Value
The newly created Cell object.
-
Draws this Cell in the specified canvas in the specified rect and with the font from the specified DiagramItem.
Parameters
canvas
The canvas to draw this Cell onto.
rect
The rectangle where this Cell is drawn.
parent
The DiagramItem
-
Loads the content of this Cell from the specified XmlElement in the specified XmlContext.
Declaration
Swift
open func loadFromXml(_ element: XmlElement?, context: XmlContext)
Parameters
element
The XmlElement to load the content of this Cell from.
context
The XmlContext which is used to load the content of this Cell from.
-
Saves the content of this Cell under the specified XmlElement in the specified XmlContext.
Declaration
Swift
open func saveToXml(_ element: XmlElement, context: XmlContext)
Parameters
element
The XmlElement under which the content of this Cell is saved.
context
The XmlContext which is used to save the content of this Cell.
-
The text of this Cell.
Declaration
Swift
open var text: String
-
Gets the vertical alignment of the text drawn in this diagram item.
Declaration
Swift
open var verticalTextAlignment: VerticalAlignment
-
Gets the horizontal alignment of the text drawn in this diagram item.
Declaration
Swift
open var horizontalTextAlignment: HorizontalAlignment
-
The Image contained in this Cell.
Declaration
Swift
open var image: UIImage?
-
The align of the image contained in this Cell. One of the ImageAlign enumeration values.
Declaration
Swift
open var imageAlign: ImageAlign
-
The column span of this Cell.
Declaration
Swift
open var columnSpan: Int
-
The row span of this Cell.
Declaration
Swift
open var rowSpan: Int
-
The name of the font with which text is drawn in this Cell.
Declaration
Swift
open var fontName: String
-
The size of the font with which text is drawn in this Cell.
Declaration
Swift
open var fontSize: Double