共用方式為


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"/>

事件類型

備註

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

適用於