Message 1 of 5
Copy/Paste Formatted text from TextNote to clipboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to copy the content of the TextNote into Clipboard. Currently I have following code. The code copies text into clipboard without formatting. Is there a way to copy content of a TextNote along with its formatting?
var elem = doc.GetElement(pickedRef); var textNote = elem as TextNote; System.Windows.Clipboard.SetData(System.Windows.TextDataFormat.Text.ToString(), textNote.Text);