public void PasteFromClipboard() { if (SelectedCells == null || !SelectedCells.Cells().Any()) { throw new ArgumentException("Attempt to paste text into null selection"); } SelectedCells.Cells().First().Value = Clipboard.GetText(); }