private Font GetFont(GridDocumentCell cell) { return(new Font( "Arial", DimensionsAndStyle.GetFontSize(cell.TextStyle), DimensionsAndStyle.GetFontStyle(cell.TextStyle))); }
public IntermediatePageCell(GridDocumentRow row, GridDocumentCell cell, double x, double y, double width, double height) { Row = row; Cell = cell; X = x; Y = y; Width = width; Height = height; }
public double CalculateCellWidth(Graphics g, GridDocumentCell cell) { if (cell.Overflow) { return(0); } if (string.IsNullOrEmpty(cell.GetFormattedText(_parameters.CultureInfo))) { return(0); } return(GetStringWidth(g, cell.GetFormattedText(_parameters.CultureInfo), GetFont(cell))); }
private double CalculateCellHeight(Graphics g, GridDocumentCell cell) { return(GetFontHeightInPixels(g, DimensionsAndStyle.GetFontSize(cell.TextStyle))); }