com.aspose.note

Class RichText

    • Constructor Detail

      • RichText

        public RichText(Document document)

        Initializes a new instance of the RichText class.

        Parameters:
        document - The parent document of the rich text.
    • Method Detail

      • getLastModifiedTime

        public Date getLastModifiedTime()

        Gets the last modified time.

      • setLastModifiedTime

        public void setLastModifiedTime(Date value)

        Sets the last modified time.

      • getText

        public String getText()

        Gets the text. The string MUST NOT contain any characters of the value 10 (line feed).

      • setText

        public void setText(String value)

        Sets the text. The string MUST NOT contain any characters of the value 10 (line feed).

      • getParagraphStyle

        public final ParagraphStyle getParagraphStyle()

        Gets the paragraph style. These settings are used if there is no matching TextStyle object in getStyles() collection either this object doesn't specify a needed setting.

      • setParagraphStyle

        public final void setParagraphStyle(ParagraphStyle value)

        Sets the paragraph style. These settings are used if there is no matching TextStyle object in getStyles() collection either this object doesn't specify a needed setting.

      • getAlignment

        public int getAlignment()

        Gets the alignment.

        Returns:
        The HorizontalAlignment.
      • setAlignment

        public void setAlignment(int value)

        Sets the alignment.

      • getSpaceBefore

        public Float getSpaceBefore()

        Gets the minimum amount of space before.

      • setSpaceBefore

        public void setSpaceBefore(Float value)

        Sets the minimum amount of space before.

      • setSpaceBefore

        public void setSpaceBefore(float value)
      • getSpaceAfter

        public Float getSpaceAfter()

        Gets the minimum amount of space after.

      • setSpaceAfter

        public void setSpaceAfter(Float value)

        Sets the minimum amount of space after.

      • setSpaceAfter

        public void setSpaceAfter(float value)
      • getLineSpacing

        public Float getLineSpacing()

        Gets the line spacing.

      • setLineSpacing

        public void setLineSpacing(Float value)

        Sets the line spacing.

      • setLineSpacing

        public void setLineSpacing(float value)
      • getStyles

        public com.aspose.ms.System.Collections.Generic.IGenericList<TextStyle> getStyles()

        Gets the styles.

      • getTags

        public final com.aspose.ms.System.Collections.Generic.List<ITag> getTags()

        Gets the list of all tags of a paragraph.

        Specified by:
        getTags in interface ITaggable