Difference between revisions of "iOSTableCellData.AccessoryType"

From Xojo Documentation

(Created page with "{{PropertyBox | name=AccessoryType | owner=iOSTableCellData | ownertype=class | scope=public | type=AccessoryTypes | project=Mobile | t...")
 
 
Line 13: Line 13:
 
Create a new cell with a checkmark accessory:
 
Create a new cell with a checkmark accessory:
 
<rbcode>
 
<rbcode>
Dim cell As iOSTableCellData = Table1.CreateCell
+
Var cell As iOSTableCellData = Table1.CreateCell
 
cell.Text = "Sample"
 
cell.Text = "Sample"
 
cell.AccessoryType = iOSTableCellData.AccessoryTypes.Checkmark
 
cell.AccessoryType = iOSTableCellData.AccessoryTypes.Checkmark
 
Table1.AddRow(0, cell)
 
Table1.AddRow(0, cell)
 
</rbcode>
 
</rbcode>

Latest revision as of 17:33, 20 July 2019

Property (As AccessoryTypes )
aiOSTableCellData.AccessoryType = newAccessoryTypesValue
or
AccessoryTypesValue = aiOSTableCellData.AccessoryType

Supported on Mobile (iOS).

The accessory type that is displayed in the cell.

Sample Code

Create a new cell with a checkmark accessory:

Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Sample"
cell.AccessoryType = iOSTableCellData.AccessoryTypes.Checkmark
Table1.AddRow(0, cell)