**Inheritance:**
java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.StructureTextState

```
public class StructureTextState extends Object
```

Represents text state settings for Text Structure Elements and TaggedContent (ITextElement, ITaggedContent)

## Constructors

| Constructor | Description |
| --- | --- |
| [StructureTextState](#StructureTextState--) | Default constructor |

## Methods

| Method | Description |
| --- | --- |
| [createTextState](#createTextState--) | Create Text State |
| [getBackgroundColor](#getBackgroundColor--) | Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element. |
| [getCharacterSpacing](#getCharacterSpacing--) | Gets or sets character spacing of the text. Can be null. Use null to inherit {@code CharacterSpacing} property from parent structure element. |
| [getFont](#getFont--) | Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element. |
| [getFontSize](#getFontSize--) | Gets or sets font size of the text. Can be null. Use null to inherit {@code FontSize} property from parent structure element. |
| [getFontStyle](#getFontStyle--) | Gets or sets font style of the text. Can be null. Use null to inherit {@code FontStyle} property from parent structure element. |
| [getForegroundColor](#getForegroundColor--) | Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element. |
| [getHorizontalAlignment](#getHorizontalAlignment--) | Gets or sets a horizontal alignment of paragraph |
| [getHorizontalScaling](#getHorizontalScaling--) | Gets or sets horizontal scaling of the text. Can be null. Use null to inherit {@code HorizontalScaling} property from parent structure element. |
| [getLineSpacing](#getLineSpacing--) | Gets or sets line spacing of the text. Can be null. Use null to inherit {@code LineSpacing} property from parent structure element. |
| [getMarginInfo](#getMarginInfo--) | Gets or sets margin for block structure element. |
| [getStrikeOut](#getStrikeOut--) | Gets or sets strikeout for the text. Can be null. Use null to inherit {@code StrikeOut} property from parent structure element. |
| [getSubscript](#getSubscript--) | Gets or sets subscript of the text. Can be null. Use null to inherit {@code Subscript} property from parent structure element. |
| [getSuperscript](#getSuperscript--) | Gets or sets superscript of the text. Can be null. Use null to inherit {@code Superscript} property from parent structure element. |
| [getUnderline](#getUnderline--) | Gets or sets underline for the text. Can be null. Use null to inherit {@code Underline} property from parent structure element. |
| [getVerticalAlignment](#getVerticalAlignment--) | Gets or sets a vertical alignment of paragraph |
| [getWordSpacing](#getWordSpacing--) | Gets or sets word spacing of the text. Can be null. Use null to inherit {@code WordSpacing} property from parent structure element. |
| [isFirstParagraphInColumn](#isFirstParagraphInColumn--) | Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false. |
| [isInLineParagraph](#isInLineParagraph--) | Gets or sets a paragraph is inline. Default is false. |
| [isInNewPage](#isInNewPage--) | Gets or sets a bool value that force this paragraph generates at new page. Default is false. |
| [isKeptWithNext](#isKeptWithNext--) | Gets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false. |
| [setBackgroundColor](#setBackgroundColor-com.aspose.pdf.Color-) | Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element. |
| [setCharacterSpacing](#setCharacterSpacing-com.aspose.ms.System.Nullable-) | Gets or sets character spacing of the text. |
| [setFont](#setFont-com.aspose.pdf.Font-) | Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element. |
| [setFontSize](#setFontSize-com.aspose.ms.System.Nullable-) | Gets or sets font size of the text. |
| [setFontStyle](#setFontStyle-com.aspose.ms.System.Nullable-) | Gets or sets font style of the text. |
| [setForegroundColor](#setForegroundColor-com.aspose.pdf.Color-) | Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element. |
| [setHorizontalScaling](#setHorizontalScaling-com.aspose.ms.System.Nullable-) | Gets or sets horizontal scaling of the text. |
| [setLineSpacing](#setLineSpacing-com.aspose.ms.System.Nullable-) | Gets or sets line spacing of the text. |
| [setMarginInfo](#setMarginInfo-com.aspose.pdf.MarginInfo-) | Gets or sets margin for block structure element. |
| [setStrikeOut](#setStrikeOut-com.aspose.ms.System.Nullable-) | Gets or sets strikeout for the text. |
| [setSubscript](#setSubscript-com.aspose.ms.System.Nullable-) | Gets or sets subscript of the text. |
| [setSuperscript](#setSuperscript-com.aspose.ms.System.Nullable-) | Gets or sets superscript of the text. |
| [setUnderline](#setUnderline-com.aspose.ms.System.Nullable-) | Gets or sets underline for the text. |
| [setWordSpacing](#setWordSpacing-com.aspose.ms.System.Nullable-) | Gets or sets word spacing of the text. |
| [update](#update-com.aspose.pdf.tagged.logicalstructure.elements.StructureTextState-) | Update elements |

### StructureTextState {#StructureTextState--}
```
public StructureTextState()
```

Default constructor

### createTextState {#createTextState--}
```
public final TextState createTextState()
```

Create Text State

**Returns:**
TextState instance

### getBackgroundColor {#getBackgroundColor--}
```
public final Color getBackgroundColor()
```

Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.

**Returns:**
Color instance

### getCharacterSpacing {#getCharacterSpacing--}
```
public final com.aspose.ms.System.Nullable< Float > getCharacterSpacing()
```

Gets or sets character spacing of the text. Can be null. Use null to inherit {@code CharacterSpacing} property from parent structure element.

**Returns:**
Float array

### getFont {#getFont--}
```
public final Font getFont()
```

Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.

**Returns:**
Font instance

### getFontSize {#getFontSize--}
```
public final com.aspose.ms.System.Nullable< Float > getFontSize()
```

Gets or sets font size of the text. Can be null. Use null to inherit {@code FontSize} property from parent structure element.

**Returns:**
Float array

### getFontStyle {#getFontStyle--}
```
public final com.aspose.ms.System.Nullable< Integer > getFontStyle()
```

Gets or sets font style of the text. Can be null. Use null to inherit {@code FontStyle} property from parent structure element.

**Returns:**
Integer array

### getForegroundColor {#getForegroundColor--}
```
public final Color getForegroundColor()
```

Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.

**Returns:**
Color instance

### getHorizontalAlignment {#getHorizontalAlignment--}
```
public final com.aspose.ms.System.Nullable< HorizontalAlignment > getHorizontalAlignment()
```

Gets or sets a horizontal alignment of paragraph

**Returns:**
HorizontalAlignment element

### getHorizontalScaling {#getHorizontalScaling--}
```
public final com.aspose.ms.System.Nullable< Float > getHorizontalScaling()
```

Gets or sets horizontal scaling of the text. Can be null. Use null to inherit {@code HorizontalScaling} property from parent structure element.

**Returns:**
Float array

### getLineSpacing {#getLineSpacing--}
```
public final com.aspose.ms.System.Nullable< Float > getLineSpacing()
```

Gets or sets line spacing of the text. Can be null. Use null to inherit {@code LineSpacing} property from parent structure element.

**Returns:**
Float array

### getMarginInfo {#getMarginInfo--}
```
@Deprecated public final MarginInfo getMarginInfo()
```

Gets or sets margin for block structure element.

**Returns:**
MarginInfo instance @deprecated Use IAdjustPosition.AdjustPosition(PositionSettings positionSettings) method to set position settings

### getStrikeOut {#getStrikeOut--}
```
public final com.aspose.ms.System.Nullable< Boolean > getStrikeOut()
```

Gets or sets strikeout for the text. Can be null. Use null to inherit {@code StrikeOut} property from parent structure element.

**Returns:**
Boolean array

### getSubscript {#getSubscript--}
```
public final com.aspose.ms.System.Nullable< Boolean > getSubscript()
```

Gets or sets subscript of the text. Can be null. Use null to inherit {@code Subscript} property from parent structure element.

**Returns:**
Boolean array

### getSuperscript {#getSuperscript--}
```
public final com.aspose.ms.System.Nullable< Boolean > getSuperscript()
```

Gets or sets superscript of the text. Can be null. Use null to inherit {@code Superscript} property from parent structure element.

**Returns:**
Boolean array

### getUnderline {#getUnderline--}
```
public final com.aspose.ms.System.Nullable< Boolean > getUnderline()
```

Gets or sets underline for the text. Can be null. Use null to inherit {@code Underline} property from parent structure element.

**Returns:**
Boolean array

### getVerticalAlignment {#getVerticalAlignment--}
```
public final com.aspose.ms.System.Nullable< VerticalAlignment > getVerticalAlignment()
```

Gets or sets a vertical alignment of paragraph

**Returns:**
VerticalAlignment element

### getWordSpacing {#getWordSpacing--}
```
public final com.aspose.ms.System.Nullable< Float > getWordSpacing()
```

Gets or sets word spacing of the text. Can be null. Use null to inherit {@code WordSpacing} property from parent structure element.

**Returns:**
Float array

### isFirstParagraphInColumn {#isFirstParagraphInColumn--}
```
public final com.aspose.ms.System.Nullable< Boolean > isFirstParagraphInColumn()
```

Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false.

**Returns:**
Boolean value

### isInLineParagraph {#isInLineParagraph--}
```
public final com.aspose.ms.System.Nullable< Boolean > isInLineParagraph()
```

Gets or sets a paragraph is inline. Default is false.

**Returns:**
Boolean value

### isInNewPage {#isInNewPage--}
```
public final com.aspose.ms.System.Nullable< Boolean > isInNewPage()
```

Gets or sets a bool value that force this paragraph generates at new page. Default is false.

**Returns:**
Boolean value

### isKeptWithNext {#isKeptWithNext--}
```
public final com.aspose.ms.System.Nullable< Boolean > isKeptWithNext()
```

Gets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.

**Returns:**
Boolean value

### setBackgroundColor {#setBackgroundColor-com.aspose.pdf.Color-}
Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.

### setCharacterSpacing {#setCharacterSpacing-com.aspose.ms.System.Nullable-}
Gets or sets character spacing of the text.

### setFont {#setFont-com.aspose.pdf.Font-}
Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.

### setFontSize {#setFontSize-com.aspose.ms.System.Nullable-}
Gets or sets font size of the text.

### setFontStyle {#setFontStyle-com.aspose.ms.System.Nullable-}
Gets or sets font style of the text.

### setForegroundColor {#setForegroundColor-com.aspose.pdf.Color-}
Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.

### setHorizontalScaling {#setHorizontalScaling-com.aspose.ms.System.Nullable-}
Gets or sets horizontal scaling of the text.

### setLineSpacing {#setLineSpacing-com.aspose.ms.System.Nullable-}
Gets or sets line spacing of the text.

### setMarginInfo {#setMarginInfo-com.aspose.pdf.MarginInfo-}
Gets or sets margin for block structure element.

### setStrikeOut {#setStrikeOut-com.aspose.ms.System.Nullable-}
Gets or sets strikeout for the text.

### setSubscript {#setSubscript-com.aspose.ms.System.Nullable-}
Gets or sets subscript of the text.

### setSuperscript {#setSuperscript-com.aspose.ms.System.Nullable-}
Gets or sets superscript of the text.

### setUnderline {#setUnderline-com.aspose.ms.System.Nullable-}
Gets or sets underline for the text.

### setWordSpacing {#setWordSpacing-com.aspose.ms.System.Nullable-}
Gets or sets word spacing of the text.

### update {#update-com.aspose.pdf.tagged.logicalstructure.elements.StructureTextState-}
Update elements
