DXMargins Class
Margin values.
Declaration
public class DXMargins extends JavaObject implements IEquatable<DXMargins>
Implements
Inherited Members
Inheritance
Constructors
DXMargins() Constructor
Initializes a new instance of the DXMargins class.
Declaration
public DXMargins()
DXMargins(float left, float right, float top, float bottom) Constructor
Initializes a new instance of the DXMargins class with specified settings.
Declaration
public DXMargins(float left, float right, float top, float bottom)
Parameters
| Name | Type | Description |
|---|---|---|
| left | float | The left margin. |
| right | float | The right margin. |
| top | float | The top margin. |
| bottom | float | The bottom margin. |
Methods
clone() Method
Creates a copy of this margins object.
Declaration
public DXMargins clone()
Returns
| Type | Description |
|---|---|
DXMargins |
The cloned |
equals(DXMargins other) Method
Checks whether this margins object equals the specified margins object.
Declaration
public boolean equals(DXMargins other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | DXMargins |
The margins object to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(Object obj) Method
Checks whether this margins object equals the specified margins object.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The margins object to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getBottom() Method
Returns the bottom margin.
Declaration
public float getBottom()
Returns
| Type | Description |
|---|---|
| float | The bottom margin. |
getLeft() Method
Returns the left margin.
Declaration
public float getLeft()
Returns
| Type | Description |
|---|---|
| float | The left margin. |
getRight() Method
Returns the right margin.
Declaration
public float getRight()
Returns
| Type | Description |
|---|---|
| float | The right margin. |
getTop() Method
Returns the top margin.
Declaration
public float getTop()
Returns
| Type | Description |
|---|---|
| float | The top margin. |
hashCode() Method
Returns a hash code value for this object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
setBottom(float value) Method
Specifies the bottom margin.
Declaration
public void setBottom(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The bottom margin. |
setLeft(float value) Method
Specifies the left margin.
Declaration
public void setLeft(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The left margin. |
setRight(float value) Method
Specifies the right margin.
Declaration
public void setRight(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The right margin. |
setTop(float value) Method
Specifies the top margin.
Declaration
public void setTop(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The top margin. |
toString() Method
Returns the string representation of this margins object.
Declaration
public String toString()
Returns
| Type | Description |
|---|---|
| String | The string representation of this margins object. |