using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; class StringBuilderTest { static void Main() { string text = null; text = Clipboard.GetText(); // Keep the console window open in debug mode. System.Console.WriteLine(text); System.Console.ReadKey(); } }