System.Drawing.Printing.Margins Class

Specifies the dimensions of the margins of a printed page.

See Also: Margins Members


public class Margins : ICloneable


The System.Drawing.Printing.Margins class is used to manipulate the width of margins in System.Drawing.Printing.PageSettings and System.Drawing.Printing.PrintController. System.Drawing.Printing.MarginsConverter is the type descriptor for this class.

Margins.Left, Margins.Right, Margins.Top, and Margins.Bottom are properties that define the margins. Margins.Clone creates an identical System.Drawing.Printing.Margins. Margins.Equals(object) determines if another object has the same dimensions as a System.Drawing.Printing.Margins.

For more information about printing, see the System.Drawing.Printing namespace overview.


Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,