private void mdxrReader_Pismo(object sender, FontEventArgs ev) { //throw new NotImplementedException(); }
private void ExecuteChangeFont(FontEventArgs e) { Console.WriteLine("here"); foreach (DataGridViewCell cell in ActiveWS.Spreadsheet.SelectedCells) { if (cell.RowIndex >= 0 && cell.ColumnIndex >= 0) { Cell c = ActiveWS.Spreadsheet.SpreadsheetModel.Cells[cell.RowIndex, cell.ColumnIndex]; if (c == null) { c = new Cell(); ActiveWS.Spreadsheet.SpreadsheetModel.Cells[cell.RowIndex, cell.ColumnIndex] = c; } c.CellFormat.CellFont = new Font((e.FamilyName == null) ? c.CellFormat.CellFont.Name : e.FamilyName, (e.Size == -1) ? c.CellFormat.CellFont.Size : e.Size, c.CellFormat.CellFont.Style); } ActiveWS.Spreadsheet.RefreshCell(new CellKey(cell.RowIndex, cell.ColumnIndex)); } }