public final class Paragraph extends java.lang.Object implements IParagraph
Represents a paragraph of text.
Constructor and Description |
---|
Paragraph()
Initializes a new instance of the Paragraph class with default properties.
|
Paragraph(Paragraph para)
Copy constructor that initializes a new instance of a Paragraph class.
|
Modifier and Type | Method and Description |
---|---|
IParagraphFormatEffectiveData |
createParagraphFormatEffective()
Deprecated.
Use Paragraph.ParagraphFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
IPortionFormat |
getEndParagraphPortionFormat()
Specifies the portion properties that are to be used if another portion is inserted after
the last one.
|
IParagraphFormat |
getParagraphFormat()
Returns the formatting object for this paragraph.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPortionCollection |
getPortions()
Returns the collection of a text portions.
|
IPresentation |
getPresentation()
Returns the parent presentation of a paragraph.
|
java.awt.geom.Rectangle2D.Float |
getRect()
Get coordinates of rect that bounds paragraph.
|
IBaseSlide |
getSlide()
Returns the parent slide of a paragraph.
|
java.lang.String |
getText()
Gets or sets the the plain text of a paragraph.
|
void |
joinPortionsWithSameFormatting()
Joins runs with same formatting.
|
void |
setEndParagraphPortionFormat(IPortionFormat value)
Specifies the portion properties that are to be used if another portion is inserted after
the last one.
|
void |
setText(java.lang.String value)
Gets or sets the the plain text of a paragraph.
|
void |
subscribe(com.aspose.slides.IObserver observer) |
void |
unsubscribe(com.aspose.slides.IObserver observer) |
public Paragraph()
Initializes a new instance of the Paragraph class with default properties.
public Paragraph(Paragraph para)
Copy constructor that initializes a new instance of a Paragraph class.
public final IPortionCollection getPortions()
Returns the collection of a text portions.
Read-only IPortionCollection
.
getPortions
in interface IParagraph
public final IParagraphFormat getParagraphFormat()
Returns the formatting object for this paragraph.
Read-only IParagraphFormat
.
The formatting object contains the formatting parameters defined for the current paragraph only, inherited data is not applied.
In order to get the effective values including inherited ones use the ParagraphFormat.getEffective()
method.
getParagraphFormat
in interface IParagraph
public final void joinPortionsWithSameFormatting()
Joins runs with same formatting.
joinPortionsWithSameFormatting
in interface IParagraph
@Deprecated public final IParagraphFormatEffectiveData createParagraphFormatEffective()
Creates immutable object which contains effective paragraph formatting properties with the inheritance applied.
createParagraphFormatEffective
in interface IParagraph
ParagraphFormatEffectiveData
.public final java.lang.String getText()
Gets or sets the the plain text of a paragraph.
Read/write String
.
getText
in interface IParagraph
public final void setText(java.lang.String value)
Gets or sets the the plain text of a paragraph.
Read/write String
.
setText
in interface IParagraph
public final java.awt.geom.Rectangle2D.Float getRect()
Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
getRect
in interface IParagraph
public final IPortionFormat getEndParagraphPortionFormat()
Specifies the portion properties that are to be used if another portion is inserted after the last one.
getEndParagraphPortionFormat
in interface IParagraph
public final void setEndParagraphPortionFormat(IPortionFormat value)
Specifies the portion properties that are to be used if another portion is inserted after the last one.
setEndParagraphPortionFormat
in interface IParagraph
public final void subscribe(com.aspose.slides.IObserver observer)
public final void unsubscribe(com.aspose.slides.IObserver observer)
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final IBaseSlide getSlide()
Returns the parent slide of a paragraph.
Read-only BaseSlide
.
getSlide
in interface ISlideComponent
public final IPresentation getPresentation()
Returns the parent presentation of a paragraph.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent