public RectangleE(PointE location, SizeE size)
 {
     m_X      = location.X;
     m_Width  = size.Width;
     m_Y      = location.Y;
     m_Height = size.Height;
 }
Example #2
0
 public static SizeE operator -(SizeE c)
 {
     SizeE ans = new SizeE();
     ans.Width = -c.Width;
     ans.Height = -c.Height;
     return ans;
 }
Example #3
0
        public static SizeE operator -(SizeE c)
        {
            SizeE ans = new SizeE();

            ans.Width  = -c.Width;
            ans.Height = -c.Height;
            return(ans);
        }
Example #4
0
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
        {
            SizeE size = value as SizeE;

            if (size != null && destinationType == typeof(string))
            {
                return(size.Width + ", " + size.Height);
            }
            return(base.ConvertTo(context, culture, value, destinationType));
        }
Example #5
0
 public SizeE(SizeE size)
     : this(size.Width, size.Height)
 {
 }
Example #6
0
 public SizeE Inflate(SizeE amount)
 {
     return Inflate(amount.Width, amount.Height);
 }
Example #7
0
 public static SizeE operator +(SizeE c)
 {
     var ans = new SizeE();
     ans.Width = +c.Width;
     ans.Height = +c.Height;
     return ans;
 }
Example #8
0
 public SizeE(SizeE size)
     : this(size.Width, size.Height)
 {
 }
Example #9
0
 public SizeE Inflate(SizeE amount)
 {
     return(Inflate(amount.Width, amount.Height));
 }
 public void Inflate(SizeE size)
 {
     Inflate(size.Width, size.Height);
 }