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 or sets the last modified time.

      • setLastModifiedTime

        public void setLastModifiedTime(Date value)

        Gets or sets the last modified time.

      • getText

        public String getText()

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

      • setText

        public void setText(String value)

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

      • getDefaultStyle

        public TextStyle getDefaultStyle()

        Gets or sets the default style.

      • setDefaultStyle

        public void setDefaultStyle(TextStyle value)

        Gets or sets the default style.

      • getAlignment

        public int getAlignment()

        Gets or sets the alignment.

        Returns:
        The HorizontalAlignment.
      • setAlignment

        public void setAlignment(int value)

        Gets or sets the alignment.

      • getSpaceBefore

        public float getSpaceBefore()

        Gets or sets the minimum amount of space before.

      • setSpaceBefore

        public void setSpaceBefore(float value)

        Gets or sets the minimum amount of space before.

      • getSpaceAfter

        public float getSpaceAfter()

        Gets or sets the minimum amount of space after.

      • setSpaceAfter

        public void setSpaceAfter(float value)

        Gets or sets the minimum amount of space after.

      • getLineSpacing

        public float getLineSpacing()

        Gets or sets the line spacing.

      • setLineSpacing

        public void setLineSpacing(float value)

        Gets or sets the line spacing.

      • getStyles

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

        Gets the styles.

      • getTags

        public com.aspose.ms.System.Collections.Generic.IGenericList<NoteTagCore> getTags()

        Gets the tags.

      • accept

        public void accept(DocumentVisitor visitor)

        Accepts the visitor of the node.

        Specified by:
        accept in interface INode
        Specified by:
        accept in class Node
        Parameters:
        visitor - The object of a class derived from the DocumentVisitor.