public final class RichText extends Node implements IOutlineElementChildNode, ITaggable
Represents a rich text.
Constructor and Description |
---|
RichText()
Initializes a new instance of the
RichText class. |
RichText(Document document)
Deprecated.
Obsolete since 22.1 release. Use other constructors instead.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DocumentVisitor visitor)
Accepts the visitor of the node.
|
int |
getAlignment()
Gets the alignment.
|
Date |
getLastModifiedTime()
Gets the last modified time.
|
Float |
getLineSpacing()
Gets the line spacing.
|
ParagraphStyle |
getParagraphStyle()
Gets the paragraph style.
|
Float |
getSpaceAfter()
Gets the minimum amount of space after.
|
Float |
getSpaceBefore()
Gets the minimum amount of space before.
|
com.aspose.ms.System.Collections.Generic.IGenericList<TextStyle> |
getStyles()
Gets the styles.
|
com.aspose.ms.System.Collections.Generic.List<ITag> |
getTags()
Gets the list of all tags of a paragraph.
|
String |
getText()
Gets the text.
|
void |
setAlignment(int value)
Sets the alignment.
|
void |
setLastModifiedTime(Date value)
Sets the last modified time.
|
void |
setLineSpacing(float value) |
void |
setLineSpacing(Float value)
Sets the line spacing.
|
void |
setParagraphStyle(ParagraphStyle value)
Sets the paragraph style.
|
void |
setSpaceAfter(float value) |
void |
setSpaceAfter(Float value)
Sets the minimum amount of space after.
|
void |
setSpaceBefore(float value) |
void |
setSpaceBefore(Float value)
Sets the minimum amount of space before.
|
void |
setText(String value)
Sets the text.
|
getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, isComposite
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSibling, getPreviousSibling
@Deprecated public RichText(Document document)
Initializes a new instance of the RichText
class.
document
- The parent document of the rich text.public RichText()
Initializes a new instance of the RichText
class.
public Date getLastModifiedTime()
Gets the last modified time.
public void setLastModifiedTime(Date value)
Sets the last modified time.
public String getText()
Gets the text. The string MUST NOT contain any characters of the value 10 (line feed).
public void setText(String value)
Sets the text. The string MUST NOT contain any characters of the value 10 (line feed).
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.
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.
public int getAlignment()
Gets the alignment.
HorizontalAlignment
.public void setAlignment(int value)
Sets the alignment.
public Float getSpaceBefore()
Gets the minimum amount of space before.
public void setSpaceBefore(Float value)
Sets the minimum amount of space before.
public void setSpaceBefore(float value)
public Float getSpaceAfter()
Gets the minimum amount of space after.
public void setSpaceAfter(Float value)
Sets the minimum amount of space after.
public void setSpaceAfter(float value)
public Float getLineSpacing()
Gets the line spacing.
public void setLineSpacing(Float value)
Sets the line spacing.
public void setLineSpacing(float value)
public com.aspose.ms.System.Collections.Generic.IGenericList<TextStyle> getStyles()
Gets the styles.
public final com.aspose.ms.System.Collections.Generic.List<ITag> getTags()
Gets the list of all tags of a paragraph.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.
accept
in interface INode
accept
in class Node
visitor
- The object of a class derived from the DocumentVisitor
.Copyright (c) 2002-2022 Aspose. All Rights Reserved.