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