checkin for Herv Poussineau <poussine@freesurf.fr>.
[mono.git] / mcs / class / System.Drawing / System.Drawing.Printing / Margins.cs
index c221550f6cf55c94dcafc5601e6309e6ca492a43..e97148cc1ab964607262f61f88fbc608a036542f 100644 (file)
@@ -13,7 +13,7 @@ namespace System.Drawing.Printing {
        /// Summary description for Margins.
        /// </summary>
 
-       public class Margins {// : IClonable {
+       public class Margins : ICloneable {
                /// <summary>
                /// left margin in hundredths of an inch
                /// </summary>
@@ -89,5 +89,16 @@ namespace System.Drawing.Printing {
                                bottom = value;
                        }
                }
+               
+               public object Clone()
+               {
+                       return new Margins(this.Left, this.Right, this.Top, this.Bottom);
+               }
+               
+               public override string ToString()
+               {
+                       string ret = "[Margins Left={0} Right={1} Top={2} Bottom={3}]";
+                       return String.Format(ret, this.Left, this.Right, this.Top, this.Bottom);
+               }
        }
 }