UIActionSheet.DestructiveButtonIndex Property

Definition

Returns the index of the destructive button.

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

Property Value

System.System.IntPtr System.nativeint

The index of the destructive button.

Attributes

Remarks

Will return -1 if no cancel button has been set.

Button indices are zero based. They start at zero and increment by one for each button that is added.

Applies to