iOS Guides | Samples

MonoTouch.UIKit.UITableViewDataSource_Extensions Class

Extension methods to the IUITableViewDataSource interface to support all the methods from the UITableViewDataSource protocol.

See Also: UITableViewDataSource_Extensions

Syntax

public static class UITableViewDataSource_Extensions

Remarks

The extension methods for IUITableViewDataSource allow developers to treat instances of the interface as having all the optional methods of the original UITableViewDataSource protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UITableViewDataSource_Extensions are listed below.

See Also: Object

Public Methods

static
CanEditRow(this IUITableViewDataSource, UITableView, NSIndexPath) : Boolean
Whether the row located at should be editable.
static
CanMoveRow(this IUITableViewDataSource, UITableView, NSIndexPath) : Boolean
Whether the row located at can be moved to another location in the table view.
static
CommitEditingStyle(this IUITableViewDataSource, UITableView, UITableViewCellEditingStyle, NSIndexPath)
Commits the insertion or deletion of the specified row.
static
MoveRow(this IUITableViewDataSource, UITableView, NSIndexPath, NSIndexPath)
Called when a row has been moved so that the data source can 'implement' the changed row position that has been performed in the user interface. This ensures the data is kept in-sync with what is being displayed.
static
NumberOfSections(this IUITableViewDataSource, UITableView) : Int32
Returns the number of sections that are required to display the data.
static
SectionFor(this IUITableViewDataSource, UITableView, String, Int32) : Int32
Returns the index of the section with the given and .
static
SectionIndexTitles(this IUITableViewDataSource, UITableView) : String[]
Returns an array of titles to be displayed as an index on the table view.
static
TitleForFooter(this IUITableViewDataSource, UITableView, Int32) : String
Called to populate the footer for the specified section.
static
TitleForHeader(this IUITableViewDataSource, UITableView, Int32) : String
Called to populate the header for the specified section.