Margin

Margin class

Specifies the margin.

new Margin(value, unit)

Constructor.

Methods

NameDescription
equals(value)Are objects equal.
getUnit()Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.
getValue()Specifies the margin.
hashCode()Serves as a hash function for a particular type.
setUnit()Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.
setValue()Specifies the margin.

equals(value)

Are objects equal.

ParameterTypeDescription
valueObject

Returns: boolean — boolean

getUnit()

Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.

getValue()

Specifies the margin.

hashCode()

Serves as a hash function for a particular type.

Returns: Number — Number

setUnit()

Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.

setValue()

Specifies the margin.