UIKit.UITableViewDataSource.SectionFor Method
Returns the index of the section with the given tableView and atIndex.

Syntax

[Foundation.Export("tableView:sectionForSectionIndexTitle:atIndex:")]
public virtual nint SectionFor (UITableView tableView, string title, nint atIndex)

Parameters

tableView
Table view containing the section.
title
The title that's displayed in the table view's index.
atIndex
The index of the title in the array returned from the UITableViewSource.SectionIndexTitles.

Returns

The index of the section in the table view.

Remarks

This method is only required for table views that have an index: they must have the UITableViewStyle.Plain style and implement the UITableViewSource.SectionIndexTitles property.

The index for a table view may contain fewer items than the number of actual sections in the table. This method is passed the text and index of an item in the index, and should return the position of the corresponding section.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0