Class Margins

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

objectMargins

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

int

left

Left margin.

public int left

Field Value

int

right

Right margin.

public int right

Field Value

int

top

Top margin.

public int top

Field Value

int

Methods

Equals(object)

Compares this margins with other.

public override bool Equals(object obj)

Parameters

obj object

Another margins object.

Returns

bool

True if all margins are equal.

GetHashCode()

Calculates hashcode for this margins object.

public override int GetHashCode()

Returns

int

A hashcode.

ToString()

Make up a string representing this margins object.

public override string ToString()

Returns

string

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.

 English