TextBlock.IsTextTrimmedChanged 事件

定义

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 事件。

适用于