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

ParameterTypeDescription
otherTextStyleThe 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:

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

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:

ParameterTypeDescription
valueboolean

Returns: TextStyle

public TextStyle setHyperlink(boolean value)

Sets a value indicating whether the text style is hyperlink.

Parameters:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valuejava.lang.String

Returns: TextStyle

setLanguage(Locale value)

public TextStyle setLanguage(Locale value)

Sets the language of the text.

Parameters:

ParameterTypeDescription
valuejava.util.Locale

Returns: TextStyle

setMathFormatting(boolean value)

public TextStyle setMathFormatting(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

Returns: TextStyle