**Inheritance:**
java.lang.Object, [com.aspose.pub.BaseStyle](../../com.aspose.pub/basestyle)
```
public class TextStyle extends BaseStyle
```

Describes PUB text style
## Constructors

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

| Method | Description |
| --- | --- |
| [isBold()](#isBold--) | Is text bold |
| [setIsBold(boolean value)](#setIsBold-boolean-) | Sets is text bold |
| [isItalic()](#isItalic--) | Is text italic |
| [setIsItalic(boolean value)](#setIsItalic-boolean-) | Sets is text italic |
| [getUnderlineType()](#getUnderlineType--) | Underline type for text |
| [setUnderlineType(byte value)](#setUnderlineType-byte-) | Sets underline type for text |
| [isOutline()](#isOutline--) | Is text outlined |
| [setIsOutline(boolean value)](#setIsOutline-boolean-) | Sets is text outlined |
| [isShadow()](#isShadow--) | Is text shadowed |
| [setIsShadow(boolean value)](#setIsShadow-boolean-) | Sets is text shadowed |
| [isSmallCapsMode()](#isSmallCapsMode--) | Is small caps mode enabled |
| [setIsSmallCapsMode(boolean value)](#setIsSmallCapsMode-boolean-) | Enables/disables small caps mode for text |
| [isAllCapsMode()](#isAllCapsMode--) | Is all caps mode enabled |
| [setIsAllCapsMode(boolean value)](#setIsAllCapsMode-boolean-) | Enables/disables all caps mode for text |
| [isEmboss()](#isEmboss--) | Is text embossed |
| [setIsEmboss(boolean value)](#setIsEmboss-boolean-) | Sets is text embossed |
| [isEngrave()](#isEngrave--) | Is text engraved |
| [setIsEngrave(boolean value)](#setIsEngrave-boolean-) | Sets is text engraved |
| [getRawTextSize()](#getRawTextSize--) | Size of text in PUB metrics(in EMUs) |
| [setRawTextSize(int value)](#setRawTextSize-int-) | Sets size of text in PUB metrics(in EMUs) |
| [calculateTextSize()](#calculateTextSize--) | Calculates text size in points |
| [getColorIndex()](#getColorIndex--) | Gets index of color in Document.Colors array |
| [setColorIndex(int value)](#setColorIndex-int-) | Sets index of color in Document.Colors array |
| [getFontIndex()](#getFontIndex--) | Gets index of font name in Document.FontNames array |
| [setFontIndex(int value)](#setFontIndex-int-) | Sets index of font name in Document.FontNames array |
| [getSuperscriptType()](#getSuperscriptType--) | Type of superscript |
| [setSuperscriptType(byte value)](#setSuperscriptType-byte-) | Sets type of superscript |
| [getScaleValue()](#getScaleValue--) | Value of scale |
| [setScaleValue(double value)](#setScaleValue-double-) | Sets value of scale |
| [getLocale()](#getLocale--) | Locale identifier |
| [setLocale(int value)](#setLocale-int-) | Sets locale identifier |
### TextStyle() {#TextStyle--}
```
public TextStyle()
```


Constructor

### isBold() {#isBold--}
```
public final boolean isBold()
```


Is text bold

**Returns:**
boolean - boolean value
### setIsBold(boolean value) {#setIsBold-boolean-}
```
public final void setIsBold(boolean value)
```


Sets is text bold

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is bold value |

### isItalic() {#isItalic--}
```
public final boolean isItalic()
```


Is text italic

**Returns:**
boolean - boolean value
### setIsItalic(boolean value) {#setIsItalic-boolean-}
```
public final void setIsItalic(boolean value)
```


Sets is text italic

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is italic value |

### getUnderlineType() {#getUnderlineType--}
```
public final byte getUnderlineType()
```


Underline type for text

**Returns:**
byte - UnderlineType element
### setUnderlineType(byte value) {#setUnderlineType-byte-}
```
public final void setUnderlineType(byte value)
```


Sets underline type for text

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | Value of underline type |

### isOutline() {#isOutline--}
```
public final boolean isOutline()
```


Is text outlined

**Returns:**
boolean - boolean value
### setIsOutline(boolean value) {#setIsOutline-boolean-}
```
public final void setIsOutline(boolean value)
```


Sets is text outlined

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is text outlined value |

### isShadow() {#isShadow--}
```
public final boolean isShadow()
```


Is text shadowed

**Returns:**
boolean - boolean value
### setIsShadow(boolean value) {#setIsShadow-boolean-}
```
public final void setIsShadow(boolean value)
```


Sets is text shadowed

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is text shadowed value |

### isSmallCapsMode() {#isSmallCapsMode--}
```
public final boolean isSmallCapsMode()
```


Is small caps mode enabled

**Returns:**
boolean - boolean value
### setIsSmallCapsMode(boolean value) {#setIsSmallCapsMode-boolean-}
```
public final void setIsSmallCapsMode(boolean value)
```


Enables/disables small caps mode for text

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is small caps mode enabled |

### isAllCapsMode() {#isAllCapsMode--}
```
public final boolean isAllCapsMode()
```


Is all caps mode enabled

**Returns:**
boolean - boolean value
### setIsAllCapsMode(boolean value) {#setIsAllCapsMode-boolean-}
```
public final void setIsAllCapsMode(boolean value)
```


Enables/disables all caps mode for text

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is all caps mode enabled |

### isEmboss() {#isEmboss--}
```
public final boolean isEmboss()
```


Is text embossed

**Returns:**
boolean - boolean value
### setIsEmboss(boolean value) {#setIsEmboss-boolean-}
```
public final void setIsEmboss(boolean value)
```


Sets is text embossed

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is text embossed value |

### isEngrave() {#isEngrave--}
```
public final boolean isEngrave()
```


Is text engraved

**Returns:**
boolean - boolean value
### setIsEngrave(boolean value) {#setIsEngrave-boolean-}
```
public final void setIsEngrave(boolean value)
```


Sets is text engraved

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | Is text engraved value |

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


Size of text in PUB metrics(in EMUs)

**Returns:**
int - int value
### setRawTextSize(int value) {#setRawTextSize-int-}
```
public final void setRawTextSize(int value)
```


Sets size of text in PUB metrics(in EMUs)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Value of text size in EMUs |

### calculateTextSize() {#calculateTextSize--}
```
public final double calculateTextSize()
```


Calculates text size in points

**Returns:**
double - text size in points
### getColorIndex() {#getColorIndex--}
```
public final int getColorIndex()
```


Gets index of color in Document.Colors array

**Returns:**
int - int value
### setColorIndex(int value) {#setColorIndex-int-}
```
public final void setColorIndex(int value)
```


Sets index of color in Document.Colors array

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Value of color index |

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


Gets index of font name in Document.FontNames array

**Returns:**
int - int value
### setFontIndex(int value) {#setFontIndex-int-}
```
public final void setFontIndex(int value)
```


Sets index of font name in Document.FontNames array

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Value of font index |

### getSuperscriptType() {#getSuperscriptType--}
```
public final byte getSuperscriptType()
```


Type of superscript

**Returns:**
byte - SuperscriptType element
### setSuperscriptType(byte value) {#setSuperscriptType-byte-}
```
public final void setSuperscriptType(byte value)
```


Sets type of superscript

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | Value of superscript type |

### getScaleValue() {#getScaleValue--}
```
public final double getScaleValue()
```


Value of scale

**Returns:**
double - double value
### setScaleValue(double value) {#setScaleValue-double-}
```
public final void setScaleValue(double value)
```


Sets value of scale

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | Value of scale |

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


Locale identifier

**Returns:**
int - int value
### setLocale(int value) {#setLocale-int-}
```
public final void setLocale(int value)
```


Sets locale identifier

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | Locale identifier |

