Exemple #1
0
 private Font GetFont(GridDocumentCell cell)
 {
     return(new Font(
                "Arial",
                DimensionsAndStyle.GetFontSize(cell.TextStyle),
                DimensionsAndStyle.GetFontStyle(cell.TextStyle)));
 }
Exemple #2
0
 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;
 }
Exemple #3
0
        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)));
        }
Exemple #4
0
 private double CalculateCellHeight(Graphics g, GridDocumentCell cell)
 {
     return(GetFontHeightInPixels(g, DimensionsAndStyle.GetFontSize(cell.TextStyle)));
 }