共用方式為


IUITableViewDataSource 介面

定義

介面,表示通訊協定 UITableViewDataSource 的任何) 時, (所需的方法。

[Foundation.Protocol(Name="UITableViewDataSource", WrapperType=typeof(UIKit.UITableViewDataSourceWrapper))]
public interface IUITableViewDataSource : IDisposable, ObjCRuntime.INativeObject
type IUITableViewDataSource = interface
    interface INativeObject
    interface IDisposable
衍生
屬性
實作

備註

如果從 所 UITableViewDataSource 定義的通訊協定有任何) ,這個介面會包含必要的方法 (。

如果開發人員建立實作此介面的類別,則實作方法會自動匯出至 Objective-C,其中包含通訊協定中所定義方法的 UITableViewDataSource 相符簽章。

如果類別提供 UITableViewDataSource_Extensions 任何) 做為介面的擴充方法,則選擇性方法 (,讓開發人員可以在通訊協定上叫用任何選擇性方法。

屬性

Handle

處理非受控物件標記法) (指標。

(繼承來源 INativeObject)

方法

GetCell(UITableView, NSIndexPath)

傳回可在 插入的 indexPath 儲存格。

RowsInSection(UITableView, nint)

指定區段中的資料列數目。

擴充方法

CanEditRow(IUITableViewDataSource, UITableView, NSIndexPath)

位於 的資料列是否應該可編輯。

CanMoveRow(IUITableViewDataSource, UITableView, NSIndexPath)

位於 的資料列是否可以移至資料表檢視中的其他位置。

CommitEditingStyle(IUITableViewDataSource, UITableView, UITableViewCellEditingStyle, NSIndexPath)

認可插入或刪除指定的資料列。

MoveRow(IUITableViewDataSource, UITableView, NSIndexPath, NSIndexPath)

移動資料列時呼叫,讓資料來源可以「實作」已在使用者介面中執行之已變更的資料列位置。 這可確保資料與顯示的內容保持同步。

NumberOfSections(IUITableViewDataSource, UITableView)

傳回顯示資料所需的區段數目。

SectionFor(IUITableViewDataSource, UITableView, String, nint)

傳回具有指定 和 之區段的索引。

SectionIndexTitles(IUITableViewDataSource, UITableView)

傳回要顯示為數據表檢視索引的標題陣列。

TitleForFooter(IUITableViewDataSource, UITableView, nint)

呼叫 以填入指定區段的頁尾。

TitleForHeader(IUITableViewDataSource, UITableView, nint)

呼叫 以填入指定區段的標頭。

適用於