Example #1
0
 public void Set(FourSideValues copyFrom)
 {
     Left   = copyFrom.Left;
     Top    = copyFrom.Top;
     Right  = copyFrom.Right;
     Bottom = copyFrom.Bottom;
 }
Example #2
0
 public Rect AddMargins(FourSideValues margins)
 {
     return(new Rect(
                this.Left - margins.Left,
                this.Top - margins.Top,
                this.Width + margins.LeftAndRight,
                this.Height + margins.TopAndBottom));
 }
Example #3
0
 public void Set(FourSideValues copyFrom)
 {
     Left = copyFrom.Left;
     Top = copyFrom.Top;
     Right = copyFrom.Right;
     Bottom = copyFrom.Bottom;
 }