Пример #1
0
 public RectangleD(PointD pt, SizeD size)
     : this()
 {
     X      = pt.X;
     Y      = pt.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Пример #2
0
 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
 {
     if (destinationType == typeof(string) && value is SizeD)
     {
         SizeD g = (SizeD)value;
         return(string.Format("{0}, {1}", g.Width, g.Height));
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
Пример #3
0
 public SizeD(SizeD size) : this()
 {
     Width  = size.Width;
     Height = size.Height;
 }