UIActionSheet.CancelButtonIndex 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 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.