ScreenReaderService.ScreenReaderPositionChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于螢幕助讀程式焦點指示器的位置 (例如朗讀程式焦點醒目提示方塊) 變更時。
// Register
event_token ScreenReaderPositionChanged(TypedEventHandler<ScreenReaderService, ScreenReaderPositionChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void ScreenReaderPositionChanged(event_token const* cookie) const;
// Revoke with event_revoker
ScreenReaderService::ScreenReaderPositionChanged_revoker ScreenReaderPositionChanged(auto_revoke_t, TypedEventHandler<ScreenReaderService, ScreenReaderPositionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ScreenReaderService,ScreenReaderPositionChangedEventArgs> ScreenReaderPositionChanged;
function onScreenReaderPositionChanged(eventArgs) { /* Your code */ }
screenReaderService.addEventListener("screenreaderpositionchanged", onScreenReaderPositionChanged);
screenReaderService.removeEventListener("screenreaderpositionchanged", onScreenReaderPositionChanged);
- or -
screenReaderService.onscreenreaderpositionchanged = onScreenReaderPositionChanged;
Public Custom Event ScreenReaderPositionChanged As TypedEventHandler(Of ScreenReaderService, ScreenReaderPositionChangedEventArgs)