Ejemplo n.º 1
0
 public void PrintRadioButton(System.Windows.Forms.Control c,
     ParentControlPrinting typePrint,
     MultiPageManagement mp,
     Single x, Single y,
     ref Single extendedHeight, out bool ScanForChildControls)
 {
     ScanForChildControls = false;
     Single h = mp.FontHeight(new Font(c.Font.Name, c.Font.Size));
     extendedHeight = mp.BeginPrintUnit(y, h);
     mp.DrawEllipse(_Pen, x, y, h, h);
     if ( ((RadioButton) c).Checked)
     {
         Single d = 3;
         mp.FillEllipse(_Brush, x + d, y + d, h - d - d, h - d - d);
     }
     PrintText(c, mp, (float) (x + (h * 1.4)), y - 2, false, false, false, HorizontalAlignment.Left);
     mp.EndPrintUnit();
 }