RichTextBlock.IsTextTrimmedChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 IsTextTrimmed 属性值更改时发生。
// Register
event_token IsTextTrimmedChanged(TypedEventHandler<RichTextBlock, IsTextTrimmedChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void IsTextTrimmedChanged(event_token const* cookie) const;
// Revoke with event_revoker
RichTextBlock::IsTextTrimmedChanged_revoker IsTextTrimmedChanged(auto_revoke_t, TypedEventHandler<RichTextBlock, IsTextTrimmedChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<RichTextBlock,IsTextTrimmedChangedEventArgs> IsTextTrimmedChanged;
function onIsTextTrimmedChanged(eventArgs) { /* Your code */ }
richTextBlock.addEventListener("istexttrimmedchanged", onIsTextTrimmedChanged);
richTextBlock.removeEventListener("istexttrimmedchanged", onIsTextTrimmedChanged);
- or -
richTextBlock.onistexttrimmedchanged = onIsTextTrimmedChanged;
Public Custom Event IsTextTrimmedChanged As TypedEventHandler(Of RichTextBlock, IsTextTrimmedChangedEventArgs)
<RichTextBlock IsTextTrimmedChanged="eventhandler"/>
事件类型
注解
如果 TextTrimming 属性设置为 None (默认) ,则不会绘制剪裁指示器, 并且不会触发 IsTextTrimmedChanged 事件。