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