Parameters
- key
- The System.Windows.Forms.Keys value indicates the special key.
- buttonKey
- The System.String value indicates thekey of the button.
Return Value
The System.Int32 value indicates the index of the item.
Exception | Description |
---|---|
System.ArgumentNullException | The buttonKey can't be a null reference (Nothing in Visual Basic) or System.String.Empty. |
System.ArgumentException | The buttonKey isn't a correct button key in the calculator, you can get all button keys from DropDownCalculator.ButtonKeys property. |
System.ArgumentException | There is a same key had been added before, please change another one. |