ComboBox.TextSubmitted 事件

定義

當使用者提交一些未對應至 ComboBox 下拉式清單中的專案文字時發生。

// Register
event_token TextSubmitted(TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ComboBox::TextSubmitted_revoker TextSubmitted(auto_revoke_t, TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<ComboBox,ComboBoxTextSubmittedEventArgs> TextSubmitted;
function onTextSubmitted(eventArgs) { /* Your code */ }
comboBox.addEventListener("textsubmitted", onTextSubmitted);
comboBox.removeEventListener("textsubmitted", onTextSubmitted);
- or -
comboBox.ontextsubmitted = onTextSubmitted;
Public Custom Event TextSubmitted As TypedEventHandler(Of ComboBox, ComboBoxTextSubmittedEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

適用於