共用方式為


RichTextBlock.IsTextTrimmedChanged 事件

定義

發生于 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"/>

事件類型

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 TextTrimming 屬性設定為 None (預設) ,則不會繪製修剪指標,而且 不會引發 IsTextTrimmedChanged 事件。

適用於