コード例 #1
0
 public ReportElement(object ctrl, float DpiX, float DpiY, System.Drawing.PointF location, float width, float height)
 {
     _Parameter = null;
     _Tag       = ctrl;
     _Location  = new PointF(SizeConversion.ConvertPixelToInches(location.X, DpiX), SizeConversion.ConvertPixelToInches(location.Y, DpiY));
     _Height    = SizeConversion.ConvertPixelToInches(height, DpiX);
     _Width     = SizeConversion.ConvertPixelToInches(width, DpiX);
     _Text      = "";
 }
コード例 #2
0
 public ReportElement(Control ctrl, float DpiX, float DpiY)
 {
     _Parameter = null;
     _Tag       = ctrl;
     _Location  = new PointF(SizeConversion.ConvertPixelToInches(ctrl.Location.X, DpiX), SizeConversion.ConvertPixelToInches(ctrl.Location.Y, DpiY));
     _Height    = SizeConversion.ConvertPixelToInches(ctrl.Height, DpiX);
     _Width     = SizeConversion.ConvertPixelToInches(ctrl.Width, DpiX);
     _Text      = "";
 }