語言

UpDownEventArgs(Int32) 建構函式

定義

初始化 UpDownEventArgs 類別的新執行個體。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 UpDownEventArgs(int buttonPushed);
public UpDownEventArgs(int buttonPushed);
new System.Windows.Forms.UpDownEventArgs : int -> System.Windows.Forms.UpDownEventArgs
Public Sub New (buttonPushed As Integer)

參數

buttonPushed
Int32

按鈕被按下 UpDownBase 。

備註

下表描述了對 buttonPushed有效的值。

價值觀 Description
0 兩個按鈕都沒被按下。
1 按下了上去按鈕。
2 按下了下鍵。

適用於