次の方法で共有


PenButtonListener.TailButtonLongPressed イベント

定義

ユーザーがペンの末尾にあるボタンを押したままにすると発生します。

// Register
event_token TailButtonLongPressed(TypedEventHandler<PenButtonListener, PenTailButtonLongPressedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PenButtonListener::TailButtonLongPressed_revoker TailButtonLongPressed(auto_revoke_t, TypedEventHandler<PenButtonListener, PenTailButtonLongPressedEventArgs const&> const& handler) const;
public event TypedEventHandler<PenButtonListener,PenTailButtonLongPressedEventArgs> TailButtonLongPressed;
function onTailButtonLongPressed(eventArgs) { /* Your code */ }
penButtonListener.addEventListener("tailbuttonlongpressed", onTailButtonLongPressed);
penButtonListener.removeEventListener("tailbuttonlongpressed", onTailButtonLongPressed);
- or -
penButtonListener.ontailbuttonlongpressed = onTailButtonLongPressed;
Public Custom Event TailButtonLongPressed As TypedEventHandler(Of PenButtonListener, PenTailButtonLongPressedEventArgs) 

イベントの種類

適用対象

こちらもご覧ください