public final class RichText extends Node implements IOutlineElementChildNode
Represents a rich text.
Constructor and Description |
---|
RichText(Document document)
Initializes a new instance of the
RichText class. |
Modifier and Type | Method and Description |
---|---|
void |
accept(DocumentVisitor visitor)
Accepts the visitor of the node.
|
int |
getAlignment()
Gets or sets the alignment.
|
TextStyle |
getDefaultStyle()
Gets or sets the default style.
|
Date |
getLastModifiedTime()
Gets or sets the last modified time.
|
float |
getLineSpacing()
Gets or sets the line spacing.
|
float |
getSpaceAfter()
Gets or sets the minimum amount of space after.
|
float |
getSpaceBefore()
Gets or sets the minimum amount of space before.
|
com.aspose.ms.System.Collections.Generic.IGenericList<TextStyle> |
getStyles()
Gets the styles.
|
com.aspose.ms.System.Collections.Generic.IGenericList<NoteTagCore> |
getTags()
Gets the tags.
|
String |
getText()
Gets or sets the text.
|
void |
setAlignment(int value)
Gets or sets the alignment.
|
void |
setDefaultStyle(TextStyle value)
Gets or sets the default style.
|
void |
setLastModifiedTime(Date value)
Gets or sets the last modified time.
|
void |
setLineSpacing(float value)
Gets or sets the line spacing.
|
void |
setSpaceAfter(float value)
Gets or sets the minimum amount of space after.
|
void |
setSpaceBefore(float value)
Gets or sets the minimum amount of space before.
|
void |
setText(String value)
Gets or sets the text.
|
getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, isComposite
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSibling, getPreviousSibling
public RichText(Document document)
Initializes a new instance of the RichText
class.
document
- The parent document of the rich text.public Date getLastModifiedTime()
Gets or sets the last modified time.
public void setLastModifiedTime(Date value)
Gets or sets the last modified time.
public String getText()
Gets or sets the text. The string MUST NOT contain any characters of the value 10 (line feed).
public void setText(String value)
Gets or sets the text. The string MUST NOT contain any characters of the value 10 (line feed).
public TextStyle getDefaultStyle()
Gets or sets the default style.
public void setDefaultStyle(TextStyle value)
Gets or sets the default style.
public int getAlignment()
Gets or sets the alignment.
HorizontalAlignment
.public void setAlignment(int value)
Gets or sets the alignment.
public float getSpaceBefore()
Gets or sets the minimum amount of space before.
public void setSpaceBefore(float value)
Gets or sets the minimum amount of space before.
public float getSpaceAfter()
Gets or sets the minimum amount of space after.
public void setSpaceAfter(float value)
Gets or sets the minimum amount of space after.
public float getLineSpacing()
Gets or sets the line spacing.
public void setLineSpacing(float value)
Gets or sets the line spacing.
public com.aspose.ms.System.Collections.Generic.IGenericList<TextStyle> getStyles()
Gets the styles.
public com.aspose.ms.System.Collections.Generic.IGenericList<NoteTagCore> getTags()
Gets the tags.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.