Exemple #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is ExtSizeF))
            {
                return(false);
            }
            ExtSizeF sizeF = (ExtSizeF)obj;

            return(sizeF.Width == this.Width && sizeF.Height == this.Height && sizeF.GetType().Equals(base.GetType()));
        }
Exemple #2
0
 public static ExtSizeF Subtract(ExtSizeF sz1, ExtSizeF sz2)
 {
     return(new ExtSizeF(sz1.Width - sz2.Width, sz1.Height - sz2.Height));
 }
Exemple #3
0
 public static ExtSizeF Add(ExtSizeF sz1, ExtSizeF sz2)
 {
     return(new ExtSizeF(sz1.Width + sz2.Width, sz1.Height + sz2.Height));
 }
Exemple #4
0
 public ExtSizeF(ExtSizeF size)
 {
     this.width  = size.width;
     this.height = size.height;
 }
Exemple #5
0
 public static ExtSize Truncate(ExtSizeF value)
 {
     return(new ExtSize((int)value.Width, (int)value.Height));
 }
Exemple #6
0
 public static ExtPointF Subtract(ExtPointF pt, ExtSizeF sz)
 {
     return(new ExtPointF(pt.X - sz.Width, pt.Y - sz.Height));
 }
Exemple #7
0
 public static ExtPointF Add(ExtPointF pt, ExtSizeF sz)
 {
     return(new ExtPointF(pt.X + sz.Width, pt.Y + sz.Height));
 }