
**Inheritance:**
java.lang.Object, com.aspose.note.Style
```
public final class TextStyle extends Style<TextStyle>
```

Specifies the text style.
## Constructors

| Constructor | Description |
| --- | --- |
| [TextStyle()](#TextStyle--) | Initializes a new instance of the `TextStyle` class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(TextStyle other)](#equals-com.aspose.note.TextStyle-) | Determines whether the specified object is equal to the current object. |
| [equals(Object obj)](#equals-java.lang.Object-) | Determines whether the specified object is equal to the current object. |
| [getDefault()](#getDefault--) | Gets the style with "en-US" culture. |
| [getDefaultMsOneNoteTitleDateStyle()](#getDefaultMsOneNoteTitleDateStyle--) | Gets default style for title date in MS OneNote. |
| [getDefaultMsOneNoteTitleTextStyle()](#getDefaultMsOneNoteTitleTextStyle--) | Gets default style for title text in MS OneNote. |
| [getDefaultMsOneNoteTitleTimeStyle()](#getDefaultMsOneNoteTitleTimeStyle--) | Gets default style for title time in MS OneNote. |
| [getHyperlinkAddress()](#getHyperlinkAddress--) | Gets the hyperlink address. |
| [getLanguage()](#getLanguage--) | Gets the language of the text. |
| [hashCode()](#hashCode--) | Serves as a hash function for the type. |
| [isHidden()](#isHidden--) | Gets a value indicating whether the text style is hidden. |
| [isHyperlink()](#isHyperlink--) | Gets a value indicating whether the text style is hyperlink. |
| [isMathFormatting()](#isMathFormatting--) | Gets or sets a value indicating whether the text style is math-formatting. |
| [setHidden(boolean value)](#setHidden-boolean-) | Sets a value indicating whether the text style is hidden. |
| [setHyperlink(boolean value)](#setHyperlink-boolean-) | Sets a value indicating whether the text style is hyperlink. |
| [setHyperlinkAddress(String value)](#setHyperlinkAddress-java.lang.String-) | Sets the hyperlink address. |
| [setLanguage(Locale value)](#setLanguage-java.util.Locale-) | Sets the language of the text. |
| [setMathFormatting(boolean value)](#setMathFormatting-boolean-) | Sets a value indicating whether the text style is math-formatting. |
### TextStyle() {#TextStyle--}
```
public TextStyle()
```


Initializes a new instance of the `TextStyle` class.

### equals(TextStyle other) {#equals-com.aspose.note.TextStyle-}
```
public boolean equals(TextStyle other)
```


Determines whether the specified object is equal to the current object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| other | [TextStyle](../../com.aspose.note/textstyle) | The object. |

**Returns:**
boolean - The `bool`.
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


Determines whether the specified object is equal to the current object.

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

**Returns:**
boolean - The `bool`.
### getDefault() {#getDefault--}
```
public static TextStyle getDefault()
```


Gets the style with "en-US" culture.

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### getDefaultMsOneNoteTitleDateStyle() {#getDefaultMsOneNoteTitleDateStyle--}
```
public static TextStyle getDefaultMsOneNoteTitleDateStyle()
```


Gets default style for title date in MS OneNote.

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### getDefaultMsOneNoteTitleTextStyle() {#getDefaultMsOneNoteTitleTextStyle--}
```
public static TextStyle getDefaultMsOneNoteTitleTextStyle()
```


Gets default style for title text in MS OneNote.

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### getDefaultMsOneNoteTitleTimeStyle() {#getDefaultMsOneNoteTitleTimeStyle--}
```
public static TextStyle getDefaultMsOneNoteTitleTimeStyle()
```


Gets default style for title time in MS OneNote.

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### getHyperlinkAddress() {#getHyperlinkAddress--}
```
public String getHyperlinkAddress()
```


Gets the hyperlink address. Must be set if the value of the [isHyperlink](../../com.aspose.note/textstyle\#isHyperlink--) property is true.

**Returns:**
java.lang.String
### getLanguage() {#getLanguage--}
```
public Locale getLanguage()
```


Gets the language of the text.

**Returns:**
java.util.Locale
### hashCode() {#hashCode--}
```
public int hashCode()
```


Serves as a hash function for the type.

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


Gets a value indicating whether the text style is hidden.

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


Gets a value indicating whether the text style is hyperlink.

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


Gets or sets a value indicating whether the text style is math-formatting.

**Returns:**
boolean
### setHidden(boolean value) {#setHidden-boolean-}
```
public TextStyle setHidden(boolean value)
```


Sets a value indicating whether the text style is hidden.

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

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### setHyperlink(boolean value) {#setHyperlink-boolean-}
```
public TextStyle setHyperlink(boolean value)
```


Sets a value indicating whether the text style is hyperlink.

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

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### setHyperlinkAddress(String value) {#setHyperlinkAddress-java.lang.String-}
```
public TextStyle setHyperlinkAddress(String value)
```


Sets the hyperlink address. Must be set if the value of the [isHyperlink](../../com.aspose.note/textstyle\#isHyperlink--) property is true.

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

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### setLanguage(Locale value) {#setLanguage-java.util.Locale-}
```
public TextStyle setLanguage(Locale value)
```


Sets the language of the text.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Locale |  |

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
### setMathFormatting(boolean value) {#setMathFormatting-boolean-}
```
public TextStyle setMathFormatting(boolean value)
```


Sets a value indicating whether the text style is math-formatting.

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

**Returns:**
[TextStyle](../../com.aspose.note/textstyle)
