com.aspose.note

Class NumberList



  • public class NumberList
    extends Object

    Represents the numbered or bulleted list.

    • Constructor Summary

      Constructors 
      Constructor and Description
      NumberList(String format, byte numberFormat, String font, int fontSize)
      Initializes a new instance of the NumberList class.
      NumberList(String bulletedSymbol, String font, int fontSize)
      Initializes a new instance of the NumberList class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(NumberList other)
      Determines whether the specified object is equal to the current object.
      boolean equals(Object obj)
      Determines whether the specified object is equal to the current object.
      String getFont()
      Gets or sets the name of the font.
      Color getFontColor()
      Gets or sets the font color.
      int getFontSize()
      Gets or sets the font size.
      String getFormat()
      Gets or sets the format of the line header.
      Date getLastModifiedTime()
      Gets or sets the last modified time.
      String getNumberedListHeader(int sequenceNumber)
      Gets the numbered list header.
      Byte getNumberFormat()
      Gets or sets the number format used for a group of automatically numbered objects.
      int getRestart()
      Gets or sets the numeric value that overrides the automatic number value of the list item.
      int hashCode()
      Serves as a hash function for the type.
      boolean isBold()
      Gets or sets a value indicating whether the text style is bold.
      boolean isItalic()
      Gets or sets a value indicating whether the text style is italic.
      void setBold(boolean value)
      Gets or sets a value indicating whether the text style is bold.
      void setFont(String value)
      Gets or sets the name of the font.
      void setFontColor(Color value)
      Gets or sets the font color.
      void setFontSize(int value)
      Gets or sets the font size.
      void setFormat(String value)
      Gets or sets the format of the line header.
      void setItalic(boolean value)
      Gets or sets a value indicating whether the text style is italic.
      void setLastModifiedTime(Date value)
      Gets or sets the last modified time.
      void setNumberFormat(Byte value)
      Gets or sets the number format used for a group of automatically numbered objects.
      void setRestart(int value)
      Gets or sets the numeric value that overrides the automatic number value of the list item.
    • Constructor Detail

      • NumberList

        public NumberList(String bulletedSymbol,
                          String font,
                          int fontSize)

        Initializes a new instance of the NumberList class. This instance represents a bulleted list.

        Parameters:
        bulletedSymbol - A symbol which represents a bullet.
        font - A font for the bullet.
        fontSize - A font size for the bullet.
      • NumberList

        public NumberList(String format,
                          byte numberFormat,
                          String font,
                          int fontSize)

        Initializes a new instance of the NumberList class. This instance represents a numbered list.

        Parameters:
        format - The format of the numbered header.
        numberFormat - The format of the number in header.
        font - A font for the numbered header.
        fontSize - A font size for the numbered header.
    • Method Detail

      • getLastModifiedTime

        public Date getLastModifiedTime()

        Gets or sets the last modified time.

      • setLastModifiedTime

        public void setLastModifiedTime(Date value)

        Gets or sets the last modified time.

      • getFont

        public String getFont()

        Gets or sets the name of the font.

      • setFont

        public void setFont(String value)

        Gets or sets the name of the font.

      • getNumberFormat

        public Byte getNumberFormat()

        Gets or sets the number format used for a group of automatically numbered objects. Should be null for bulleted lists.

      • setNumberFormat

        public void setNumberFormat(Byte value)

        Gets or sets the number format used for a group of automatically numbered objects. Should be null for bulleted lists.

      • getFormat

        public String getFormat()

        Gets or sets the format of the line header. For bulleted lists represents a bullet symbol.

      • setFormat

        public void setFormat(String value)

        Gets or sets the format of the line header. For bulleted lists represents a bullet symbol.

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

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

      • getRestart

        public int getRestart()

        Gets or sets the numeric value that overrides the automatic number value of the list item.

      • setRestart

        public void setRestart(int value)

        Gets or sets the numeric value that overrides the automatic number value of the list item.

      • getNumberedListHeader

        public String getNumberedListHeader(int sequenceNumber)

        Gets the numbered list header.

        Parameters:
        sequenceNumber - The sequence number in the numbered list.
        Returns:
        A string representation of the specified sequence number.
      • 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(NumberList 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.