UIActionSheet.CancelButtonIndex Property

Definition

Returns the index of the cancel button.

public virtual nint CancelButtonIndex { [Foundation.Export("cancelButtonIndex")] get; [Foundation.Export("setCancelButtonIndex:")] set; }
member this.CancelButtonIndex : nint with get, set

Property Value

System.System.IntPtr System.nativeint

The index of the cancel 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