[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonMappingCollection.Insert

Insert Method

Insert(int, Keys, string)

Inserts a item to the CalculatorButtonMappingCollection.

Declaration
public void Insert(int index, Keys key, string buttonKey)
Public Sub Insert(index As Integer, key As Keys, buttonKey As String)
Parameters
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.

Exceptions
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.