TableCell

References
[ContentProperty("Control")] [TypeConverter(TableCellConverter)] public class TableCell
Represents a cell in a TableRow

Constructors

TableCell

#
public TableCell(Control control, bool scaleWidth = false)
Initializes a new instance of the TableCell class.
control (Control)Control for this cell
scaleWidth (bool = false)Scale the width of the control if true, otherwise scale to the preferred size of the control.

Properties

Control

#
public Control Control { get; set; }
Gets or sets the control in this cell, or null for an empty space

ScaleWidth

#
public bool ScaleWidth { get; set; }
Gets or sets a value indicating whether this TableCell will scale its width
Remarks: All controls in the same column of this cell will get the same scaling value. Scaling will make the column expand to fit the rest of the width of the container, minus the preferred width of any non-scaled columns. If there are no columns with width scaling, the last column will automatically get scaled. With scaling turned off, cells in the column will fit the preferred size of the widest control.
true if scale width; otherwise, false.

Convertors

OperationResultDescription
implicitControlTableCellConverts a control to a table cell
implicitImageTableCellConverts an Image to a TableCell with an ImageView control implicitly.
implicitstringTableCellConverts a string to a TableCell with a label control implicitly.
implicitTableCell[]TableCellConverts an array of cells to a new cell with a table of vertical cells in a new child TableLayout
implicitTableRow[]TableCellConverts an array of rows to a new cell with vertical rows in a new child TableLayout