com.aspose.note

Class TextStyle



  • public final class TextStyle
    extends Style<TextStyle>

    Specifies the text style.

    • Constructor Detail

      • TextStyle

        public TextStyle()

        Initializes a new instance of the TextStyle class.

    • Method Detail

      • getDefault

        public static TextStyle getDefault()

        Gets default style for title text in MS OneNote.

      • getDefaultMsOneNoteTitleTextStyle

        public static TextStyle getDefaultMsOneNoteTitleTextStyle()

        Gets default style for title text in MS OneNote.

      • getDefaultMsOneNoteTitleDateStyle

        public static TextStyle getDefaultMsOneNoteTitleDateStyle()

        Gets default style for title date in MS OneNote.

      • getDefaultMsOneNoteTitleTimeStyle

        public static TextStyle getDefaultMsOneNoteTitleTimeStyle()

        Gets default style for title time in MS OneNote.

      • isMathFormatting

        public boolean isMathFormatting()

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

      • setMathFormatting

        public void setMathFormatting(boolean value)

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

      • isHyperlink

        public boolean isHyperlink()

        Gets a value indicating whether the text style is hyperlink.

      • setHyperlink

        @Deprecated
        public TextStyle setHyperlink(boolean value)
        Deprecated. Obsolete since 22.5 release. Just use setHyperlinkAddress.

        Sets a value indicating whether the text style is hyperlink.

      • getHyperlinkAddress

        public String getHyperlinkAddress()

        Gets the hyperlink address. Must be set if the value of the isHyperlink() property is true.

      • setHyperlinkAddress

        public TextStyle setHyperlinkAddress(String value)

        Sets the hyperlink address. Must be set if the value of the isHyperlink() property is true.

      • isHidden

        public boolean isHidden()

        Gets a value indicating whether the text style is hidden.

      • setHidden

        public TextStyle setHidden(boolean value)

        Sets a value indicating whether the text style is hidden.

      • getLanguage

        public Locale getLanguage()

        Gets the language of the text.

      • setLanguage

        public TextStyle setLanguage(Locale value)

        Sets the language of the text.

      • equals

        public boolean equals(Object obj)

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

        Overrides:
        equals in class Object
        Parameters:
        obj - The object.
        Returns:
        The bool.
      • equals

        public boolean equals(TextStyle other)

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

        Parameters:
        other - The object.
        Returns:
        The bool.
      • hashCode

        public int hashCode()

        Serves as a hash function for the type.

        Overrides:
        hashCode in class Style<TextStyle>
        Returns:
        The int.