[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonMappingCollection.Add

Add Method

Add(Keys, string)

Adds an item to the CalculatorButtonMappingCollection.

Declaration
public int Add(Keys key, string buttonKey)
Public Function Add(key As Keys, buttonKey As String) As Integer
Parameters
Type Name Description
Keys key

The Keys value indicates the special key.

string buttonKey

The string value indicates thekey of the button.

Returns
Type Description
int

The int value indicates the index of the item.

Exceptions
Type Condition
ArgumentNullException

The buttonKey can't be null or Empty.

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.