コード例 #1
0
ファイル: test.cs プロジェクト: doverhill/HALC
 private Font GetFont(GridDocumentCell cell)
 {
     return(new Font(
                "Arial",
                DimensionsAndStyle.GetFontSize(cell.TextStyle),
                DimensionsAndStyle.GetFontStyle(cell.TextStyle)));
 }
コード例 #2
0
ファイル: test.cs プロジェクト: doverhill/HALC
 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;
 }
コード例 #3
0
ファイル: test.cs プロジェクト: doverhill/HALC
        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)));
        }
コード例 #4
0
ファイル: test.cs プロジェクト: doverhill/HALC
 private double CalculateCellHeight(Graphics g, GridDocumentCell cell)
 {
     return(GetFontHeightInPixels(g, DimensionsAndStyle.GetFontSize(cell.TextStyle)));
 }