Share via


InkToolbar.ActiveToolChanged イベント

定義

InkToolbarRadioButton グループで現在選択されている機能が変更されたときに発生します。 このイベントは、次のオブジェクトへのアクセスを提供します。

このグループの機能は相互に排他的です。機能を選択すると、現在アクティブな機能の選択が解除されます。

Note

InkToolbarRulerButton オブジェクトと InkToolbarCustomToggleButton オブジェクトは、アクティブな機能と連携して動作し、ActiveToolChanged イベントには公開されません。

// Register
event_token ActiveToolChanged(TypedEventHandler<InkToolbar, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
InkToolbar::ActiveToolChanged_revoker ActiveToolChanged(auto_revoke_t, TypedEventHandler<InkToolbar, IInspectable const&> const& handler) const;
public event TypedEventHandler<InkToolbar,object> ActiveToolChanged;
function onActiveToolChanged(eventArgs) { /* Your code */ }
inkToolbar.addEventListener("activetoolchanged", onActiveToolChanged);
inkToolbar.removeEventListener("activetoolchanged", onActiveToolChanged);
- or -
inkToolbar.onactivetoolchanged = onActiveToolChanged;
Public Custom Event ActiveToolChanged As TypedEventHandler(Of InkToolbar, Object) 

イベントの種類

適用対象

こちらもご覧ください