A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
Hi @O'Rourke, Ian ,
Thanks for reaching out.
The more robust approach is to take control of the clipboard serialization rather than trying to adjust the framework-generated output after the fact. In practice, that usually means building your own CF_HTML payload so that both the HTML fragment and all offset values remain consistent.
If you want to stay closer to the WPF pipeline, you can use events such as CopyingRowClipboardContent to inspect or shape the data being copied, but it is best treated as a hook for gathering or transforming the content before your own clipboard serialization step, rather than something that directly controls the final CF_HTML packaging.
WPF does not appear to expose a setting to control how CF_HTML is emitted, so if this difference is affecting Excel interoperability, it would be reasonable to raise it as a potential regression for the product team to review.
Hope this helps! If my explanation and the information I provided were useful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.