Exemplo n.º 1
0
        public void CopySelectionToClipboard()
        {
            string textValue = "";

            if (SelectedCells == null)
            {
                return;
            }

            foreach (var row in SelectedCells.Rows())
            {
                if (!string.IsNullOrEmpty(textValue))
                {
                    textValue += "\r\n";
                }
                textValue += string.Join("\t", row.Cells().Select(x => x.Value));
            }
            Clipboard.SetText(textValue);
        }