Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / CalculatorButtonMappingCollection Class / Insert Method / Insert(Int32,Keys,String) Method
The index where the key is inserted.
The System.Windows.Forms.Keys value indicates the key of a button.
The System.String value indicates the name of the button.


In This Topic
    Insert(Int32,Keys,String) Method
    In This Topic
    Inserts a item to the CalculatorButtonMappingCollection.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Insert( _
       ByVal index As Integer, _
       ByVal key As Keys, _
       ByVal buttonKey As String _
    ) 
    'Usage
     
    
    Dim instance As CalculatorButtonMappingCollection
    Dim index As Integer
    Dim key As Keys
    Dim buttonKey As String
     
    instance.Insert(index, key, buttonKey)
    public void Insert( 
       int index,
       Keys key,
       string buttonKey
    )

    Parameters

    index
    The index where the key is inserted.
    key
    The System.Windows.Forms.Keys value indicates the key of a button.
    buttonKey
    The System.String value indicates the name of the button.
    Exceptions
    ExceptionDescription
    The buttonKey can't be a null reference (Nothing in Visual Basic) or string.Empty.
    The buttonKey isn't a correct Calculator Button Key, you can get all keys from DropDownCalculator.ButtonKeys property.
    There is a same key had been added before, please change another one.
    See Also