Inside Clipboard.SetText("text"); how can I make it multiple lines C#

Pinkhron 21 Reputation points
2020-09-12T20:16:55.527+00:00

So for example I wanted to put:

Clipboard.SetText("a
a
a
a");

but its multiple lines how will i make it like that

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,442 questions
No comments
{count} votes

Accepted answer
  1. Castorix31 65,791 Reputation points
    2020-09-12T22:46:17.497+00:00

    For example =>

    Clipboard.SetText("a" + Environment.NewLine + "a" + Environment.NewLine + "a" + Environment.NewLine + "a");
    

0 additional answers

Sort by: Most helpful