TextStyle
Inheritance: java.lang.Object, com.aspose.note.Style
public final class TextStyle extends Style<TextStyle>
Specifies the text style.
Constructors
| Constructor | Description |
|---|---|
| TextStyle() | Initializes a new instance of the TextStyle class. |
Methods
| Method | Description |
|---|---|
| equals(TextStyle other) | Determines whether the specified object is equal to the current object. |
| equals(Object obj) | Determines whether the specified object is equal to the current object. |
| getDefault() | Gets the style with “en-US” culture. |
| getDefaultMsOneNoteTitleDateStyle() | Gets default style for title date in MS OneNote. |
| getDefaultMsOneNoteTitleTextStyle() | Gets default style for title text in MS OneNote. |
| getDefaultMsOneNoteTitleTimeStyle() | Gets default style for title time in MS OneNote. |
| getHyperlinkAddress() | Gets the hyperlink address. |
| getLanguage() | Gets the language of the text. |
| hashCode() | Serves as a hash function for the type. |
| isHidden() | Gets a value indicating whether the text style is hidden. |
| isHyperlink() | Gets a value indicating whether the text style is hyperlink. |
| isMathFormatting() | Gets or sets a value indicating whether the text style is math-formatting. |
| setHidden(boolean value) | Sets a value indicating whether the text style is hidden. |
| setHyperlink(boolean value) | Sets a value indicating whether the text style is hyperlink. |
| setHyperlinkAddress(String value) | Sets the hyperlink address. |
| setLanguage(Locale value) | Sets the language of the text. |
| setMathFormatting(boolean value) | Sets a value indicating whether the text style is math-formatting. |
TextStyle()
public TextStyle()
Initializes a new instance of the TextStyle class.
equals(TextStyle other)
public boolean equals(TextStyle other)
Determines whether the specified object is equal to the current object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | TextStyle | The object. |
Returns:
boolean - The bool.
equals(Object obj)
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()
public static TextStyle getDefault()
Gets the style with “en-US” culture.
Returns: TextStyle
getDefaultMsOneNoteTitleDateStyle()
public static TextStyle getDefaultMsOneNoteTitleDateStyle()
Gets default style for title date in MS OneNote.
Returns: TextStyle
getDefaultMsOneNoteTitleTextStyle()
public static TextStyle getDefaultMsOneNoteTitleTextStyle()
Gets default style for title text in MS OneNote.
Returns: TextStyle
getDefaultMsOneNoteTitleTimeStyle()
public static TextStyle getDefaultMsOneNoteTitleTimeStyle()
Gets default style for title time in MS OneNote.
Returns: TextStyle
getHyperlinkAddress()
public String getHyperlinkAddress()
Gets the hyperlink address. Must be set if the value of the isHyperlink property is true.
Returns: java.lang.String
getLanguage()
public Locale getLanguage()
Gets the language of the text.
Returns: java.util.Locale
hashCode()
public int hashCode()
Serves as a hash function for the type.
Returns:
int - The int.
isHidden()
public boolean isHidden()
Gets a value indicating whether the text style is hidden.
Returns: boolean
isHyperlink()
public boolean isHyperlink()
Gets a value indicating whether the text style is hyperlink.
Returns: boolean
isMathFormatting()
public boolean isMathFormatting()
Gets or sets a value indicating whether the text style is math-formatting.
Returns: boolean
setHidden(boolean value)
public TextStyle setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
Returns: TextStyle
setHyperlink(boolean value)
public TextStyle setHyperlink(boolean value)
Sets a value indicating whether the text style is hyperlink.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
Returns: TextStyle
setHyperlinkAddress(String value)
public TextStyle setHyperlinkAddress(String value)
Sets the hyperlink address. Must be set if the value of the isHyperlink property is true.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
Returns: TextStyle
setLanguage(Locale value)
public TextStyle setLanguage(Locale value)
Sets the language of the text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.Locale |
Returns: TextStyle
setMathFormatting(boolean value)
public TextStyle setMathFormatting(boolean value)
Sets a value indicating whether the text style is math-formatting.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
Returns: TextStyle