public RectangleD(PointD pt, SizeD size) : this() { X = pt.X; Y = pt.Y; Width = size.Width; Height = size.Height; }
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)); }
public SizeD(SizeD size) : this() { Width = size.Width; Height = size.Height; }