Class

# MobileTableCellData

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

A cell within an iOSMobileTable.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                   | Type                                                          | Read-Only | Shared |
|--------------------------------------------------------|---------------------------------------------------------------|-----------|--------|
| `AccessoryType<mobiletablecelldata.accessorytype>`     | `AccessoryTypes<mobiletablecelldata.accessorytypes>`          |           |        |
| `BackgroundColor<mobiletablecelldata.backgroundcolor>` | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `Control<mobiletablecelldata.control>`                 | `MobileUIControl</api/user_interface/mobile/mobileuicontrol>` | ✓         |        |
| `DetailText<mobiletablecelldata.detailtext>`           | `String</api/data_types/string>`                              |           |        |
| `DetailTextColor<mobiletablecelldata.detailtextcolor>` | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `Handle<mobiletablecelldata.handle>`                   | `Ptr</api/data_types/additional_types/ptr>`                   | ✓         |        |
| `Image<mobiletablecelldata.image>`                     | `Picture</api/graphics/picture>`                              |           |        |
| `Tag<mobiletablecelldata.tag>`                         | `Variant</api/data_types/variant>`                            |           |        |
| `Text<mobiletablecelldata.text>`                       | `String</api/data_types/string>`                              |           |        |
| `TextColor<mobiletablecelldata.textcolor>`             | `ColorGroup</api/graphics/colorgroup>`                        |           |        |

## Enumerations

<div id="mobiletablecelldata.accessorytypes">

<div class="rst-class">

forsearch

</div>

</div>

MobileTableCellData.AccessoryTypes

### AccessoryTypes

> Additional UI controls for a cell.
>
> | Enum              | Description                                                                                                                                                                                                                                                                                                                                                                                                                        |
> |-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | None              | A standard plain cell. This is the default for cells.                                                                                                                                                                                                                                                                                                                                                                              |
> | Disclosure        | Use this when selecting a cell results in the display of another a `MobileScreen</api/user_interface/mobile/mobilescreen>` with another table reflecting the next level in the data model hierarchy. This does not track touches, so it does not call the `iOSMobileTable.AccessoryPressed<iosmobiletable.accessorypressed>` event handler. Looks similar to a right arrow or "greater than" symbol.                               |
> | Checkmark         | Use this when a touch on a row results in the selection of that item. This kind of table view is known as a selection list, and it is analogous to a pop-up list. Selection lists can limit selections to one row, or they can allow multiple rows with checkmarks. This does not track touches, so it does not call the `iOSMobileTable.AccessoryPressed<iosmobiletable.accessorypressed>` event handler. Looks like a checkmark. |
> | Info              | Use this when you wish to display an info icon on the right side of the row. This tracks touches and touching it calls the `iOSMobileTable.AccessoryPressed<iosmobiletable.accessorypressed>` event handler.                                                                                                                                                                                                                       |
> | InfoAndDisclosure | Use this when selecting a cell results in the display of a detail `MobileScreen</api/user_interface/mobile/mobilescreen>` of that item (which may or may not be a table view). This tracks touches and touching it calls the `iOSMobileTable.AccessoryPressed<iosmobiletable.accessorypressed>` event handler. Looks like an "i" within a circle.                                                                                  |

## Property descriptions

<div id="mobiletablecelldata.accessorytype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.AccessoryType

**AccessoryType** As `AccessoryTypes<mobiletablecelldata.accessorytypes>`

> The accessory type that is displayed in the cell.
>
> Create a new cell with a checkmark accessory:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCell
>
> cell.Text = "Sample"
> cell.AccessoryType = MobileTableCellData.AccessoryTypes.Checkmark
>
> Table1.AddRow(0, cell)
> ```

<div id="mobiletablecelldata.backgroundcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.BackgroundColor

**BackgroundColor** As `ColorGroup</api/graphics/colorgroup>`

> The background color for the <span class="title-ref">MobileTableCellData</span>.
>
> This code sets the value of the BackgroundColor property:
>
> ``` xojo
> Me.BackgroundColor = Color.Yellow
> ```

<div id="mobiletablecelldata.control">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.Control

**Control** As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`

> The custom control in use by this cell, if it was created by `iOSTable.CreateCustomCell<iostable.createcustomcell>`.
>
> This property is read-only.

<div id="mobiletablecelldata.detailtext">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.DetailText

**DetailText** As `String</api/data_types/string>`

> The the smaller text that appears below the primary, character-based value of the cell.
>
> Set the detail text:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCell
>
> cell.Text = "Acme Widget"
> cell.DetailText = "Price: $3.00"
>
> Table1.AddRow(0, cell)
> ```

<div id="mobiletablecelldata.detailtextcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.DetailTextColor

**DetailTextColor** As `ColorGroup</api/graphics/colorgroup>`

> The text color for the detail text of the <span class="title-ref">MobileTableCellData</span>.

<div id="mobiletablecelldata.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> The underlying iOS UITableViewCell.
>
> This property is read-only.
>
> This is only available for cells created with `iOSTable.CreateCell<iostable.createcell>` or `iOSTable.CreateCustomCell<iostable.createcustomcell>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

<div id="mobiletablecelldata.image">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.Image

**Image** As `Picture</api/graphics/picture>`

> The image for the cell.
>
> Set the cell image:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCell
>
> cell.Text = "Acme Widget"
> cell.Image = widgetImage
>
> Table1.AddRow(0, cell)
> ```

<div id="mobiletablecelldata.tag">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.Tag

**Tag** As `Variant</api/data_types/variant>`

> A value of any type associated with the cell.
>
> Add a cell tag:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCell
>
> cell.Text = "Acme Widget"
> cell.Tag = "123" ' part ID
>
> Table1.AddRow(0, cell)
> ```

<div id="mobiletablecelldata.text">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.Text

**Text** As `String</api/data_types/string>`

> The text of the cell. This is the main (large) text that appears for the row.
>
> Set the text:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCell
>
> cell.Text = "Acme Widget"
>
> Table1.AddRow(0, cell)
> ```

<div id="mobiletablecelldata.textcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileTableCellData.TextColor

**TextColor** As `ColorGroup</api/graphics/colorgroup>`

> The text color of the <span class="title-ref">MobileTableCellData</span>.

## Notes

You cannot directly create an <span class="title-ref">MobileTableCellData</span> object using its constructor. Instead use the `iOSMobileTable.CreateCell<iosmobiletable.createcell>` or `iOSMobileTable.CreateCustomCell<iosmobiletable.createcustomcell>` methods.

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | iOS    |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `iOSMobileTable</api/ios/iosmobiletable>`, `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>` controls; `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` interface

</div>
