TextSpacing Class
A text spacing.
Declaration
public final class TextSpacing extends Struct<TextSpacing> implements IEquatable<TextSpacing>
Implements
Inherited Members
Inheritance
Constructors
TextSpacing() Constructor
Initializes a new instance of the TextSpacing class.
Declaration
public TextSpacing()
TextSpacing(TextSpacingType type, float value) Constructor
Initializes a new instance of the TextSpacing class with specified settings.
Declaration
public TextSpacing(TextSpacingType type, float value)
Parameters
| Name | Type | Description |
|---|---|---|
| type | TextSpacingType | Specifies the text spacing type. |
| value | float | Specifies the text spacing value. |
Fields
AUTOMATIC Field
Indicates that the text spacing is determined automatically.
Declaration
public static final TextSpacing AUTOMATIC
Field Value
| Type | Description |
|---|---|
TextSpacing |
A |
Methods
equals(Object obj) Method
Determines whether the specified TextSpacing is equal to the current TextSpacing
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The object to compare with the current |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(TextSpacing other) Method
Determines whether the specified text spacing is equal to this instance.
Declaration
public boolean equals(TextSpacing other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | TextSpacing |
The text spacing to compare with this instance. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getPercentage() Method
Gets the text spacing value as a percentage.
Declaration
public float getPercentage()
Returns
| Type | Description |
|---|---|
| float | The text spacing value as a percentage. |
getPoints() Method
Gets the text spacing value in points.
Declaration
public int getPoints()
Returns
| Type | Description |
|---|---|
| int | The text spacing value in points. |
getType() Method
Gets the text spacing type.
Declaration
public TextSpacingType getType()
Returns
| Type | Description |
|---|---|
| TextSpacingType | The text spacing type. |
hashCode() Method
Returns a hash code value for this text spacing.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code value for this text spacing. |