共用方式為


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

事件類型

備註

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

適用於