TextStyle

Inheritance: java.lang.Object, com.aspose.note.Style

public final class TextStyle extends Style<TextStyle>

Specifies the text style.

Constructors

ConstructorDescription
TextStyle()Initializes a new instance of the TextStyle class.

Methods

MethodDescription
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:

ParameterTypeDescription
valueboolean

Returns: TextStyle

public boolean isHyperlink()

Gets a value indicating whether the text style is hyperlink.

Returns: boolean

public TextStyle setHyperlink(boolean value)

Sets a value indicating whether the text style is hyperlink.

Parameters:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valuejava.util.Locale

Returns: TextStyle

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe 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:

ParameterTypeDescription
otherTextStyleThe object.

Returns: boolean - The bool .

hashCode()

public int hashCode()

Serves as a hash function for the type.

Returns: int - The int .