Name

Margins

Synopsis

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

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.