UIKit.UIActionSheet.DestructiveButtonIndex Property
Returns the index of the destructive button.

Syntax

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

Value

The index of the destructive button.

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.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0