Class Margins
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
This class encapsulates top, left, bottom and right margins.
public class Margins
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Margins(int, int, int, int)
Initializes an instance of Margin class.
public Margins(int top, int left, int bottom, int right)
Parameters
top
int
Top margin.
left
int
Left margin.
bottom
int
Bottom margin.
right
int
Right margin.
Fields
bottom
Bottom margin.
public int bottom
Field Value
left
Left margin.
public int left
Field Value
right
Right margin.
public int right
Field Value
top
Top margin.
public int top
Field Value
Methods
Equals(object)
Compares this margins with other.
public override bool Equals(object obj)
Parameters
obj
object
Another margins object.
Returns
True if all margins are equal.
GetHashCode()
Calculates hashcode for this margins object.
public override int GetHashCode()
Returns
A hashcode.
ToString()
Make up a string representing this margins object.
public override string ToString()
Returns
A string representation of this margins object.
set(int, int, int, int)
Specifies margins values.
public void set(int top, int left, int bottom, int right)
Parameters
top
int
Top margin.
left
int
Left margin.
bottom
int
Bottom margin.
right
int
Right margin.