[]
Adds an item to the CalculatorButtonMappingCollection.
public int Add(Keys key, string buttonKey)
Public Function Add(key As Keys, buttonKey As String) As Integer
| Type | Name | Description |
|---|---|---|
| Keys | key | The Keys value indicates the special key. |
| string | buttonKey | The string value indicates thekey of the button. |
| Type | Description |
|---|---|
| int | The int value indicates the index of the item. |
| Type | Condition |
|---|---|
| ArgumentNullException | |
| ArgumentException | The buttonKey isn't a correct button key in the calculator, you can get all button keys from ButtonKeys property. |
| ArgumentException | There is a same key had been added before, please change another one. |