UIActionSheet.DestructiveButtonIndex プロパティ

定義

破壊的ボタンのインデックスを返します。

public virtual nint DestructiveButtonIndex { [Foundation.Export("destructiveButtonIndex")] get; [Foundation.Export("setDestructiveButtonIndex:")] set; }
member this.DestructiveButtonIndex : nint with get, set

プロパティ値

System.System.IntPtr System.nativeint

破壊的ボタンのインデックス。

属性

注釈

キャンセル ボタンが設定されていない場合、-1 が返されます。

ボタンインデックスは 0 から始まります。 これらは 0 から始まり、追加される各ボタンに対して 1 ずつインクリメントされます。

適用対象