com.aspose.note

Class ParagraphStyle

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ParagraphStyle>, Cloneable


    public final class ParagraphStyle
    extends Object
    implements com.aspose.ms.System.IEquatable<ParagraphStyle>, Cloneable

    Text style settings to be used if there is no matching TextStyle object in RichText.getStyles() collection either this object doesn't specify a needed setting.

    • Constructor Detail

      • ParagraphStyle

        public ParagraphStyle()
    • Method Detail

      • getDefault

        public static ParagraphStyle getDefault()

        Gets the ParagraphStyle with default settings.

      • isBold

        public final boolean isBold()

        Gets a value indicating whether the text style is bold.

      • setBold

        public final void setBold(boolean value)

        Sets a value indicating whether the text style is bold.

      • isItalic

        public final boolean isItalic()

        Gets a value indicating whether the text style is italic.

      • setItalic

        public final void setItalic(boolean value)

        Sets a value indicating whether the text style is italic.

      • isUnderline

        public final boolean isUnderline()

        Gets a value indicating whether the text style is underline.

      • setUnderline

        public final void setUnderline(boolean value)

        Sets a value indicating whether the text style is underline.

      • isStrikethrough

        public final boolean isStrikethrough()

        Gets a value indicating whether the text style is strikethrough.

      • setStrikethrough

        public final void setStrikethrough(boolean value)

        Sets a value indicating whether the text style is strikethrough.

      • isSuperscript

        public final boolean isSuperscript()

        Gets a value indicating whether the text style is superscript.

      • setSuperscript

        public final void setSuperscript(boolean value)

        Sets a value indicating whether the text style is superscript.

      • isSubscript

        public final boolean isSubscript()

        Gets a value indicating whether the text style is subscript.

      • setSubscript

        public final void setSubscript(boolean value)

        Sets a value indicating whether the text style is subscript.

      • getFontName

        public final String getFontName()

        Gets the font name.

      • setFontName

        public final void setFontName(String value)

        Sets the font name.

      • getFontSize

        public final int getFontSize()

        Gets the font size.

      • setFontSize

        public final void setFontSize(int value)

        Sets the font size.

      • getFontColor

        public final Color getFontColor()

        Gets the font color.

      • setFontColor

        public final void setFontColor(Color value)

        Sets the font color.

      • getHighlight

        public final Color getHighlight()

        Gets the highlight color.

      • setHighlight

        public final void setHighlight(Color value)

        Sets the highlight color.

      • getFontStyle

        public final int getFontStyle()

        Gets the font style.

      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<ParagraphStyle>
        Overrides:
        equals in class Object
        Parameters:
        obj - The object.
        Returns:
        The boolean.
      • equals

        public final boolean equals(ParagraphStyle other)

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

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

        public int hashCode()

        Serves as a hash function for the type.

        Overrides:
        hashCode in class Object
        Returns:
        The int.