com.aspose.note

Class TextStyle

  • All Implemented Interfaces:
    Cloneable


    public final class TextStyle
    extends Object
    implements Cloneable

    Specifies the text style.

    • Constructor Detail

      • TextStyle

        public TextStyle()

        Initializes a new instance of the TextStyle class.

    • Method Detail

      • 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.

      • isBold

        public boolean isBold()

        Gets or sets a value indicating whether the text style is bold.

      • setBold

        public void setBold(boolean value)

        Gets or sets a value indicating whether the text style is bold.

      • isItalic

        public boolean isItalic()

        Gets or sets a value indicating whether the text style is italic.

      • setItalic

        public void setItalic(boolean value)

        Gets or sets a value indicating whether the text style is italic.

      • isUnderline

        public boolean isUnderline()

        Gets or sets a value indicating whether the text style is underline.

      • setUnderline

        public void setUnderline(boolean value)

        Gets or sets a value indicating whether the text style is underline.

      • isStrikethrough

        public boolean isStrikethrough()

        Gets or sets a value indicating whether the text style is strikethrough.

      • setStrikethrough

        public void setStrikethrough(boolean value)

        Gets or sets a value indicating whether the text style is strikethrough.

      • isSuperscript

        public boolean isSuperscript()

        Gets or sets a value indicating whether the text style is superscript.

      • setSuperscript

        public void setSuperscript(boolean value)

        Gets or sets a value indicating whether the text style is superscript.

      • isSubscript

        public boolean isSubscript()

        Gets or sets a value indicating whether the text style is subscript.

      • setSubscript

        public void setSubscript(boolean value)

        Gets or sets a value indicating whether the text style is subscript.

      • getFontName

        public String getFontName()

        Gets or sets the font name.

      • setFontName

        public void setFontName(String value)

        Gets or sets the font name.

      • getFontSize

        public int getFontSize()

        Gets or sets the font size.

      • setFontSize

        public void setFontSize(int value)

        Gets or sets the font size.

      • getFontColor

        public Color getFontColor()

        Gets or sets the font color.

      • setFontColor

        public void setFontColor(Color value)

        Gets or sets the font color.

      • getHighlight

        public Color getHighlight()

        Gets or sets the highlight color.

      • setHighlight

        public void setHighlight(Color value)

        Gets or sets the highlight color.

      • isMathFormatting

        public boolean isMathFormatting()

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

      • setMathFormatting

        public void setMathFormatting(boolean value)

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

      • isHyperlink

        public boolean isHyperlink()

        Gets or sets a value indicating whether the text style is hyperlink.

      • setHyperlink

        public void setHyperlink(boolean value)

        Gets or sets a value indicating whether the text style is hyperlink.

      • getHyperlinkAddress

        public String getHyperlinkAddress()

        Gets or sets the hyperlink address. Must be set if the value of the IsHyperlink property is true.

      • setHyperlinkAddress

        public void setHyperlinkAddress(String value)

        Gets or sets the hyperlink address. Must be set if the value of the IsHyperlink property is true.

      • isHidden

        public boolean isHidden()

        Gets or sets a value indicating whether the text style is hidden.

      • setHidden

        public void setHidden(boolean value)

        Gets or sets a value indicating whether the text style is hidden.

      • getRunIndex

        public int getRunIndex()

        Gets or sets the run index.


        Run index specifies the number of the last symbol in a text node which will use this style. The first symbol is defined as a following to the last symbol of the previous style in styles collection. Index starts from 1.
      • setRunIndex

        public void setRunIndex(int value)

        Gets or sets the run index.


        Run index specifies the number of the last symbol in a text node which will use this style. The first symbol is defined as a following to the last symbol of the previous style in styles collection. Index starts from 1.
      • getFontStyle

        public int getFontStyle()

        Gets the font style.

      • 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 Object
        Returns:
        The int.