public static void PasteItem(ListView lvw) { IDataObject data = Clipboard.GetDataObject(); if (data.GetData("System.String", true) == null) { return; } string Text = data.GetData("System.String", true).ToString(); Text = CFindRep.ReplaceLineBreakToNewLine(Text); if (!CFindRep.IsPastable(Text)) { return; } string[] Rows = Text.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); for (int rw = 0, rw2 = Rows.Length; rw < rw2; rw++) { string[] Cols = Rows[rw].Split('\t'); lvw.Items.Add(new ListViewItem(Cols)); } }