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