TextBlock.IsTextTrimmedChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于 IsTextTrimmed 屬性值變更時。
// Register
event_token IsTextTrimmedChanged(TypedEventHandler<TextBlock, IsTextTrimmedChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void IsTextTrimmedChanged(event_token const* cookie) const;
// Revoke with event_revoker
TextBlock::IsTextTrimmedChanged_revoker IsTextTrimmedChanged(auto_revoke_t, TypedEventHandler<TextBlock, IsTextTrimmedChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBlock,IsTextTrimmedChangedEventArgs> IsTextTrimmedChanged;
function onIsTextTrimmedChanged(eventArgs) { /* Your code */ }
textBlock.addEventListener("istexttrimmedchanged", onIsTextTrimmedChanged);
textBlock.removeEventListener("istexttrimmedchanged", onIsTextTrimmedChanged);
- or -
textBlock.onistexttrimmedchanged = onIsTextTrimmedChanged;
Public Custom Event IsTextTrimmedChanged As TypedEventHandler(Of TextBlock, IsTextTrimmedChangedEventArgs)
<TextBlock IsTextTrimmedChanged="eventhandler"/>
事件類型
Windows 需求
裝置系列 |
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)
|
備註
如果 TextTrimming 屬性設定為 None (預設) ,則不會繪製修剪指標,而且不會引發 IsTextTrimmedChanged 事件。