UIActionSheet.DestructiveButtonIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.