Back to API Reference
Class

StripFormatOnPasteBehavior

sealed
Inherits:InputBehavior
Implements:IModifierChangeSink

Drops one formatting modifier from pasted content even though the field renders it — paste a styled passage and this format alone arrives as plain text. Use when a field offers a format in its own UI but should not inherit it from the clipboard (e.g. keep authored colors, reject pasted ones). Formats the field has no style for are dropped already; this opts out one it does have.

protected override void OnEnable()
protected override void OnDisable()