DekGenius.com
[ Team LiB ] Previous Section Next Section

Margins

System.Drawing.Printing (system.drawing.dll)class

This class encapsulates the position of the margins on a printed page. You can set the margins with the PageSettings.Margins property. The Top, Left, Bottom, and Right margins can be set in units of 1/100th inch.

public class Margins : ICloneable {
// Public Constructors
   public Margins();
   public Margins(int left, int right, int top, int bottom);
// Public Instance Properties
   public int Bottom{set; get; }
   public int Left{set; get; }
   public int Right{set; get; }
   public int Top{set; get; }
// Public Instance Methods
   public object Clone();  // implements ICloneable
   public override bool Equals(object obj);  // overrides object
   public override int GetHashCode();  // overrides object
   public override string ToString();  // overrides object
}

Returned By

PageSettings.Margins, System.Windows.Forms.PageSetupDialog.MinMargins

Passed To

PageSettings.Margins, PrinterUnitConvert.Convert(), System.Windows.Forms.PageSetupDialog.MinMargins

    [ Team LiB ] Previous Section Next Section