Share via


RichTextBlock.IsTextTrimmedChanged Event

Definition

Occurs when the IsTextTrimmed property value has changed.

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

Event Type

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

If the TextTrimming property is set to None (default), no trim indicator is drawn and the IsTextTrimmedChanged event does not fire.

Applies to