//15052008WRP - Measure category title size
        protected Size DrawCategoryTitleMeasure(Report rpt, Graphics g, string t, Style a)
        {
            Size size = Size.Empty;
            Row r = FirstChartRow(rpt);

            if (t == null || t == "")
                return size;

            if (a != null)
                size = a.MeasureString(rpt, g, t, t.GetTypeCode(), r, int.MaxValue);
            else
                size = Style.MeasureStringDefaults(rpt, g, t, t.GetTypeCode(), r, int.MaxValue);

            return size;

        }      
Esempio n. 2
0
 protected Size DrawCategoryTitleMeasure(Report rpt, Graphics g, string t, Style a)
 {
     Size empty = Size.Empty;
       Row r = this.FirstChartRow(rpt);
       if ((t != null) && (t != ""))
       {
     if (a != null)
     {
       empty = a.MeasureString(rpt, g, t, t.GetTypeCode(), r, 0x7fffffff);
     }
     else
     {
       empty = Style.MeasureStringDefaults(rpt, g, t, t.GetTypeCode(), r, 0x7fffffff);
     }
       }
       return empty;
 }