There is no difference in copying text from one or multi-line TextBox to and from the clipboard using Clipboard.SetText() (and, of course, Clipboard.GetText() ). A TextBox will still contain one String , regardless of whether it contains line breaks or not. This is just eye candy.
In terms of limitations, your Clipboard.SetText() method will always accept only one line, its size is limited only by the amount of free memory at a given time.
To insert this text manually in applications such as Notepad or Word, no special code is required.
Clipboard.SetText(yourTextBox.Text); - thatβs all you need.
source share