共用方式為


NumberBox.ValueChanged 事件

定義

會在使用者按下 Enter 鍵、按下微調按鈕或變更焦點,觸發新輸入評估之後發生。

// Register
event_token ValueChanged(TypedEventHandler<NumberBox, NumberBoxValueChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void ValueChanged(event_token const* cookie) const;

// Revoke with event_revoker
NumberBox::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<NumberBox, NumberBoxValueChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<NumberBox,NumberBoxValueChangedEventArgs> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
numberBox.addEventListener("valuechanged", onValueChanged);
numberBox.removeEventListener("valuechanged", onValueChanged);
- or -
numberBox.onvaluechanged = onValueChanged;
Public Custom Event ValueChanged As TypedEventHandler(Of NumberBox, NumberBoxValueChangedEventArgs) 

事件類型

適用於

另請參閱