예제 #1
0
        private void copySelectionToClipboard()
        {
            var dataTable = _pivotGridCellsToDataTableMapper.MapSelectionFrom(Cells, _parameterDisplayFunc, outputDisplayFormatter);

            Clipboard.SetDataObject(_clipboardCopyTask.CreateDataObject(dataTable));
        }
예제 #2
0
 private void copyTableToClipboard(DataTable dataTable, bool includeHeaders = true)
 {
    if (dataTable.Rows.Count == 0)
       return;
    Clipboard.SetDataObject(_clipboardCopyTask.CreateDataObject(dataTable, includeHeaders));
 }