<PackageReference Include="System.Drawing.Common" Version="9.0.6" />

Margins

public class Margins : ICloneable
Specifies the dimensions of the margins of a printed page.
public int Bottom { get; set; }

Gets or sets the bottom margin, in hundredths of an inch.

public int Left { get; set; }

Gets or sets the left margin width, in hundredths of an inch.

public int Right { get; set; }

Gets or sets the right margin width, in hundredths of an inch.

public int Top { get; set; }

Gets or sets the top margin width, in hundredths of an inch.

public Margins()

Initializes a new instance of the Margins class with 1-inch wide margins.

public Margins(int left, int right, int top, int bottom)

Initializes a new instance of the Margins class with the specified left, right, top, and bottom margins.

public static bool op_Equality(Margins m1, Margins m2)

Compares two Margins to determine if they have the same dimensions.

public static bool op_Inequality(Margins m1, Margins m2)

Compares two Margins to determine whether they are of unequal width.

public object Clone()

Retrieves a duplicate of this object, member by member.