---
title: "CmxParagraphStyle"
url: "https://reference.aspose.com/imaging/java/com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxparagraphstyle/"
product: "Aspose.Imaging for Java API Reference"
description: "The paragraph style."
---

**Inheritance:**
java.lang.Object
```
public class CmxParagraphStyle
```

The paragraph style.
## Constructors

| Constructor | Description |
| --- | --- |
| [CmxParagraphStyle()](#CmxParagraphStyle--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getCharacterSpacing()](#getCharacterSpacing--) | Gets the character spacing. |
| [setCharacterSpacing(float value)](#setCharacterSpacing-float-) | Sets the character spacing. |
| [getLanguageSpacing()](#getLanguageSpacing--) | Gets the language spacing. |
| [setLanguageSpacing(float value)](#setLanguageSpacing-float-) | Sets the language spacing. |
| [getWordSpacing()](#getWordSpacing--) | Gets the word spacing. |
| [setWordSpacing(float value)](#setWordSpacing-float-) | Sets the word spacing. |
| [getLineSpacing()](#getLineSpacing--) | Gets the line spacing. |
| [setLineSpacing(float value)](#setLineSpacing-float-) | Sets the line spacing. |
| [getHorizontalAlignment()](#getHorizontalAlignment--) | Gets the horizontal alignment. |
| [setHorizontalAlignment(int value)](#setHorizontalAlignment-int-) | Sets the horizontal alignment. |
| [equals(Object o)](#equals-java.lang.Object-) | Check if objects are equal. |
| [hashCode()](#hashCode--) | Get hash code of the current object. |
### CmxParagraphStyle() {#CmxParagraphStyle--}
```
public CmxParagraphStyle()
```


### getCharacterSpacing() {#getCharacterSpacing--}
```
public final float getCharacterSpacing()
```


Gets the character spacing.

**Returns:**
float - the character spacing.
### setCharacterSpacing(float value) {#setCharacterSpacing-float-}
```
public final void setCharacterSpacing(float value)
```


Sets the character spacing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the character spacing. |

### getLanguageSpacing() {#getLanguageSpacing--}
```
public final float getLanguageSpacing()
```


Gets the language spacing.

**Returns:**
float - the language spacing.
### setLanguageSpacing(float value) {#setLanguageSpacing-float-}
```
public final void setLanguageSpacing(float value)
```


Sets the language spacing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the language spacing. |

### getWordSpacing() {#getWordSpacing--}
```
public final float getWordSpacing()
```


Gets the word spacing.

**Returns:**
float - the word spacing.
### setWordSpacing(float value) {#setWordSpacing-float-}
```
public final void setWordSpacing(float value)
```


Sets the word spacing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the word spacing. |

### getLineSpacing() {#getLineSpacing--}
```
public final float getLineSpacing()
```


Gets the line spacing.

**Returns:**
float - the line spacing.
### setLineSpacing(float value) {#setLineSpacing-float-}
```
public final void setLineSpacing(float value)
```


Sets the line spacing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the line spacing. |

### getHorizontalAlignment() {#getHorizontalAlignment--}
```
public final int getHorizontalAlignment()
```


Gets the horizontal alignment.

**Returns:**
int - the horizontal alignment.
### setHorizontalAlignment(int value) {#setHorizontalAlignment-int-}
```
public final void setHorizontalAlignment(int value)
```


Sets the horizontal alignment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the horizontal alignment. |

### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


Check if objects are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | The other object. |

**Returns:**
boolean - The equality comparison result.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Get hash code of the current object.

**Returns:**
int - The hash code.
