Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / CalculatorButtonMappingCollection Class / Add Method / Add(Keys,String) Method
The System.Windows.Forms.Keys value indicates the special key.
The System.String value indicates thekey of the button.


In This Topic
    Add(Keys,String) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal key As Keys, _
       ByVal buttonKey As String _
    ) As Integer
    'Usage
     
    
    Dim instance As CalculatorButtonMappingCollection
    Dim key As Keys
    Dim buttonKey As String
    Dim value As Integer
     
    value = instance.Add(key, buttonKey)
    public int Add( 
       Keys key,
       string buttonKey
    )

    Parameters

    key
    The System.Windows.Forms.Keys value indicates the special key.
    buttonKey
    The System.String value indicates thekey of the button.

    Return Value

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