iOSTable.SectionTitle

From Xojo Documentation

Method

iOSTable.SectionTitle(section As Integer) As Text

Supported on Mobile(iOS).

Gets the title for the section.


Method

iOSTable.SectionTitle(section As Integer, Assigns value As Text)

Supported on Mobile(iOS).

Sets the title for the section.

Parameters

Parameter Description
section The section to get or set the title.
value The value to set as the title.

Notes

You cannot change the title section that was originally given a blank title.

Exceptions

Exception Description
OutOfBoundsException When the section does not exist. At least one section must be added to the table before getting or setting its title.

Sample Code

Change the first section title:

Table1.SectionTitle(0) = "New Title"

Get the title of the 2nd section:

Var title As Text = Table1.SectionTitle(1)