Event args for CopyingToClipboard, raised before anything is written to the clipboard. A handler can change what is written, or cancel the copy.
public sealed class CopyingToClipboardEventArgs(MarkdownCopyOrigin origin, string text, string? html = null) : RoutedEventArgs
kind:method, kind:property, kind:ctor. Press Esc to clear.CopyingToClipboardEventArgs(MarkdownCopyOrigin, String, String?)Event args for CopyingToClipboard, raised before anything is written to the clipboard. A handler can change what is written, or cancel the copy.CancelSet to true to write nothing, for instance when the handler writes the clipboard itself. A code block's copy button then shows no confirmation.HtmlThe HTML written next to Text, so that pasting into a word processor, a chat or a web editor keeps the formatting; null to write none. Set for Selection and Table while IsHtmlCopyEnabled is true on a platform with an HTML clipboard format (Windows, macOS and Linux), null otherwise. Setting it where the platform has no HTML format writes the text alone.OriginWhat is being copied.TextThe text that will be written, with lines separated by '\n'. The viewer writes it with the platform's line endings ("\r\n" on Windows), whatever line endings a handler sets it with. Nothing is written when it is set to null or an empty string.