Skip to main content

TextSpacing Class

A text spacing.

Declaration

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

Implements

com.devexpress.system.IEquatable<com.devexpress.docs.office.TextSpacing>

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
TextSpacing

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 TextSpacing instance that indicates automatic text spacing.

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 TextSpacing

Returns

Type Description
boolean

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

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

true if the specified text spacing is equal to this instance; otherwise, false.

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.