
**Inheritance:**
java.lang.Object
```
public class Style<T>
```

This class contains common properties of [ParagraphStyle](../../com.aspose.note/paragraphstyle) and [TextStyle](../../com.aspose.note/textstyle) classes.

 T : 
## Constructors

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

| Method | Description |
| --- | --- |
| [getFontColor()](#getFontColor--) | Gets or sets the font color. |
| [getFontName()](#getFontName--) | Gets or sets the font name. |
| [getFontSize()](#getFontSize--) | Gets or sets the font size. |
| [getFontStyle()](#getFontStyle--) | Gets the font style. |
| [getHighlight()](#getHighlight--) | Gets or sets the highlight color. |
| [hashCode()](#hashCode--) | Serves as a hash function for the type. |
| [isBold()](#isBold--) | Gets or sets a value indicating whether the text style is bold. |
| [isItalic()](#isItalic--) | Gets or sets a value indicating whether the text style is italic. |
| [isStrikethrough()](#isStrikethrough--) | Gets or sets a value indicating whether the text style is strikethrough. |
| [isSubscript()](#isSubscript--) | Gets or sets a value indicating whether the text style is subscript. |
| [isSuperscript()](#isSuperscript--) | Gets or sets a value indicating whether the text style is superscript. |
| [isUnderline()](#isUnderline--) | Gets or sets a value indicating whether the text style is underline. |
| [setBold(boolean value)](#setBold-boolean-) | Gets or sets a value indicating whether the text style is bold. |
| [setFontColor(Color value)](#setFontColor-java.awt.Color-) | Gets or sets the font color. |
| [setFontName(String value)](#setFontName-java.lang.String-) | Gets or sets the font name. |
| [setFontSize(Integer value)](#setFontSize-java.lang.Integer-) | Gets or sets the font size. |
| [setHighlight(Color value)](#setHighlight-java.awt.Color-) | Gets or sets the highlight color. |
| [setItalic(boolean value)](#setItalic-boolean-) | Gets or sets a value indicating whether the text style is italic. |
| [setStrikethrough(boolean value)](#setStrikethrough-boolean-) | Gets or sets a value indicating whether the text style is strikethrough. |
| [setSubscript(boolean value)](#setSubscript-boolean-) | Gets or sets a value indicating whether the text style is subscript. |
| [setSuperscript(boolean value)](#setSuperscript-boolean-) | Gets or sets a value indicating whether the text style is superscript. |
| [setUnderline(boolean value)](#setUnderline-boolean-) | Gets or sets a value indicating whether the text style is underline. |
### Style() {#Style--}
```
public Style()
```


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


Gets or sets the font color.

**Returns:**
java.awt.Color
### getFontName() {#getFontName--}
```
public final String getFontName()
```


Gets or sets the font name.

**Returns:**
java.lang.String
### getFontSize() {#getFontSize--}
```
public final Integer getFontSize()
```


Gets or sets the font size.

**Returns:**
java.lang.Integer
### getFontStyle() {#getFontStyle--}
```
public final int getFontStyle()
```


Gets the font style.

**Returns:**
int
### getHighlight() {#getHighlight--}
```
public final Color getHighlight()
```


Gets or sets the highlight color.

**Returns:**
java.awt.Color
### hashCode() {#hashCode--}
```
public int hashCode()
```


Serves as a hash function for the type.

**Returns:**
int - The `int`.
### isBold() {#isBold--}
```
public final boolean isBold()
```


Gets or sets a value indicating whether the text style is bold.

**Returns:**
boolean
### isItalic() {#isItalic--}
```
public final boolean isItalic()
```


Gets or sets a value indicating whether the text style is italic.

**Returns:**
boolean
### isStrikethrough() {#isStrikethrough--}
```
public final boolean isStrikethrough()
```


Gets or sets a value indicating whether the text style is strikethrough.

**Returns:**
boolean
### isSubscript() {#isSubscript--}
```
public final boolean isSubscript()
```


Gets or sets a value indicating whether the text style is subscript.

**Returns:**
boolean
### isSuperscript() {#isSuperscript--}
```
public final boolean isSuperscript()
```


Gets or sets a value indicating whether the text style is superscript.

**Returns:**
boolean
### isUnderline() {#isUnderline--}
```
public final boolean isUnderline()
```


Gets or sets a value indicating whether the text style is underline.

**Returns:**
boolean
### setBold(boolean value) {#setBold-boolean-}
```
public final T setBold(boolean value)
```


Gets or sets a value indicating whether the text style is bold.

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

**Returns:**
T
### setFontColor(Color value) {#setFontColor-java.awt.Color-}
```
public final T setFontColor(Color value)
```


Gets or sets the font color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.awt.Color |  |

**Returns:**
T
### setFontName(String value) {#setFontName-java.lang.String-}
```
public final T setFontName(String value)
```


Gets or sets the font name.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

**Returns:**
T
### setFontSize(Integer value) {#setFontSize-java.lang.Integer-}
```
public final T setFontSize(Integer value)
```


Gets or sets the font size.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.Integer |  |

**Returns:**
T
### setHighlight(Color value) {#setHighlight-java.awt.Color-}
```
public final T setHighlight(Color value)
```


Gets or sets the highlight color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.awt.Color |  |

**Returns:**
T
### setItalic(boolean value) {#setItalic-boolean-}
```
public final T setItalic(boolean value)
```


Gets or sets a value indicating whether the text style is italic.

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

**Returns:**
T
### setStrikethrough(boolean value) {#setStrikethrough-boolean-}
```
public final T setStrikethrough(boolean value)
```


Gets or sets a value indicating whether the text style is strikethrough.

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

**Returns:**
T
### setSubscript(boolean value) {#setSubscript-boolean-}
```
public final T setSubscript(boolean value)
```


Gets or sets a value indicating whether the text style is subscript.

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

**Returns:**
T
### setSuperscript(boolean value) {#setSuperscript-boolean-}
```
public final T setSuperscript(boolean value)
```


Gets or sets a value indicating whether the text style is superscript.

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

**Returns:**
T
### setUnderline(boolean value) {#setUnderline-boolean-}
```
public final T setUnderline(boolean value)
```


Gets or sets a value indicating whether the text style is underline.

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

**Returns:**
T
