[]
Inserts a item to the CalculatorButtonMappingCollection.
public void Insert(int index, Keys key, string buttonKey)
Public Sub Insert(index As Integer, key As Keys, buttonKey As String)
| Type | Name | Description |
|---|---|---|
| int | index | The index where the key is inserted. |
| Keys | key | The Keys value indicates the key of a button. |
| string | buttonKey | The string value indicates the name of the button. |
| Type | Condition |
|---|---|
| ArgumentNullException | The buttonKey can't be null or string.Empty. |
| ArgumentException | The buttonKey isn't a correct Calculator Button Key, you can get all keys from ButtonKeys property. |
| ArgumentException | There is a same key had been added before, please change another one. |