Skip to main content

Padding Class

Contains padding or margin information.

Declaration

public final class Padding extends Struct<Padding> implements IEquatable<Padding>

Implements

com.devexpress.system.IEquatable<com.devexpress.docs.Padding>

Inherited Members

com.devexpress.system.Struct.equals(java.lang.Object)
com.devexpress.system.Struct.getHashCode()
com.devexpress.system.Struct.hashCode()
java.lang.Object.clone()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.Struct
Padding

Constructors

Padding() Constructor

Initializes a new instance of the Padding class.

Declaration

public Padding()

Padding(float all) Constructor

Initializes a new instance of the Padding class with specified settings.

Declaration

public Padding(float all)

Parameters

Name Type Description
all float

The padding value to apply to all sides of the element.

Padding(float left, float top, float right, float bottom) Constructor

Initializes a new instance of the Padding class with specified settings.

Declaration

public Padding(float left, float top, float right, float bottom)

Parameters

Name Type Description
left float

The padding value for the left side of the element.

top float

The padding value for the top side of the element.

right float

The padding value for the right side of the element.

bottom float

The padding value for the bottom side of the element.

Fields

EMPTY Field

Returns a Padding structure with no padding.

Declaration

public static final Padding EMPTY

Field Value

Type Description
Padding

A Padding structure with zero padding for all sides.

Methods

equals(Object obj) Method

Determines whether the specified object is equal to the current Padding object.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare with the current Padding object.

Returns

Type Description
boolean

true if the specified object is equal to the current Padding object; otherwise, false.

equals(Padding other) Method

Determines whether the specified Padding object is equal to the current Padding object.

Declaration

public boolean equals(Padding other)

Parameters

Name Type Description
other Padding

The Padding object to compare with the current Padding object.

Returns

Type Description
boolean

true if the specified Padding object is equal to the current Padding object; otherwise, false.

getAll() Method

Indicates padding for all element sides.

Declaration

public float getAll()

Returns

Type Description
float

The padding value applied to all sides of the element.

getBottom() Method

Indicates padding for the bottom side of the element.

Declaration

public float getBottom()

Returns

Type Description
float

The padding value applied to the bottom side of the element.

getHorizontal() Method

Gets the sum of left and right padding values.

Declaration

public float getHorizontal()

Returns

Type Description
float

The sum of left and right padding values.

getIsEmpty() Method

Indicates whether all padding values are equal to zero.

Declaration

public boolean getIsEmpty()

Returns

Type Description
boolean

true if all padding values are equal to zero; otherwise, false.

getLeft() Method

Indicates padding for the left side of the element.

Declaration

public float getLeft()

Returns

Type Description
float

The padding value applied to the left side of the element.

getRight() Method

Indicates padding for the right side of the element.

Declaration

public float getRight()

Returns

Type Description
float

The padding value applied to the right side of the element.

getTop() Method

Indicates padding for the top side of the element.

Declaration

public float getTop()

Returns

Type Description
float

The padding value applied to the top side of the element.

getVertical() Method

Gets the sum of the top and bottom padding values.

Declaration

public float getVertical()

Returns

Type Description
float

The sum of top and bottom padding values.

hashCode() Method

Returns the hash code for the current Padding object.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code for the current Padding object.