MESCIUS SPREAD for Windows Forms 15.0J
Add(Keys,String) メソッド

特定のキーを示すSystem.Windows.Forms.Keys値。
ボタンのキーを示すSystem.String値。
CalculatorButtonMappingCollectionに項目を追加します。
構文
'宣言
 
Public Overloads Function Add( _
   ByVal key As Keys, _
   ByVal buttonKey As String _
) As Integer
public int Add( 
   Keys key,
   string buttonKey
)

パラメータ

key
特定のキーを示すSystem.Windows.Forms.Keys値。
buttonKey
ボタンのキーを示すSystem.String値。

戻り値の型

項目のインデックスを示す整数System.Int32値。
例外
例外解説
System.ArgumentNullExceptionbuttonKey を null 参照 (Visual Basicでは Nothing) または System.String.Emptyにすることはできません。
System.ArgumentExceptionbuttonKey は電卓の正しいボタンキーではありません。 DropDownCalculator.ButtonKeys プロパティからすべてのボタンキーを取得できます。
System.ArgumentException以前に同じキーが追加されていますので、別のキーを変更してください。
参照

CalculatorButtonMappingCollection クラス
CalculatorButtonMappingCollection メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.