次の方法で共有


UITableViewSource.EditingStyleForRow(UITableView, NSIndexPath) メソッド

定義

テーブル ビューによって表示される各行に対して呼び出され、その行に使用する編集スタイルを決定します。

[Foundation.Export("tableView:editingStyleForRowAtIndexPath:")]
public virtual UIKit.UITableViewCellEditingStyle EditingStyleForRow (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member EditingStyleForRow : UIKit.UITableView * Foundation.NSIndexPath -> UIKit.UITableViewCellEditingStyle
override this.EditingStyleForRow : UIKit.UITableView * Foundation.NSIndexPath -> UIKit.UITableViewCellEditingStyle

パラメーター

tableView
UITableView

編集可能なテーブル ビュー。

indexPath
NSIndexPath

行の場所。

戻り値

indexPath指定された行に使用する編集スタイル。

属性

注釈

テーブル ビューが編集モードになると、このメソッドを使用すると、各行に編集スタイルを設定できます。

UITableViewCellが編集可能である (Editingtrue) で、このメソッドが実装されていない場合、セルはDelete既定で設定されます。

[UITableViewDelegate] で宣言されています

適用対象