共用方式為


PipsPager.SelectedIndexChanged 事件

定義

發生在 PipsPager 上選取的索引變更之後。

// Register
event_token SelectedIndexChanged(TypedEventHandler<PipsPager, PipsPagerSelectedIndexChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PipsPager::SelectedIndexChanged_revoker SelectedIndexChanged(auto_revoke_t, TypedEventHandler<PipsPager, PipsPagerSelectedIndexChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<PipsPager,PipsPagerSelectedIndexChangedEventArgs> SelectedIndexChanged;
function onSelectedIndexChanged(eventArgs) { /* Your code */ }
pipsPager.addEventListener("selectedindexchanged", onSelectedIndexChanged);
pipsPager.removeEventListener("selectedindexchanged", onSelectedIndexChanged);
- or -
pipsPager.onselectedindexchanged = onSelectedIndexChanged;
Public Custom Event SelectedIndexChanged As TypedEventHandler(Of PipsPager, PipsPagerSelectedIndexChangedEventArgs) 

事件類型

備註

當使用者選取個別 pip 時,或當使用者與瀏覽按鈕互動時,可能會以程式設計方式發生此事件。

使用此事件傳回的數據是所選取頁面的索引。

適用於

另請參閱