public interface IParagraph extends ISlideComponent
Represents a paragraph of a text.
| Modifier and Type | Method and Description |
|---|---|
IPortionFormat |
getEndParagraphPortionFormat()
Specifies the portion properties that are to be used if another portion is inserted after
the last one.
|
int |
getLinesCount()
Get number of lines in a paragraph.
|
IParagraphFormat |
getParagraphFormat()
Returns the formatting object for this paragraph.
|
IPortionCollection |
getPortions()
Returns the collection of a text portions.
|
java.awt.geom.Rectangle2D.Float |
getRect()
Get coordinates of rect that bounds 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.
|
getSlidegetPresentationIPortionCollection getPortions()
Returns the collection of a text portions.
Read-only IPortionCollection.
IParagraphFormat getParagraphFormat()
Returns the formatting object for this paragraph.
Read-only IParagraphFormat.
void joinPortionsWithSameFormatting()
Joins runs with same formatting.
java.lang.String getText()
Gets or sets the the plain text of a paragraph.
Read/write String.
void setText(java.lang.String value)
Gets or sets the the plain text of a paragraph.
Read/write String.
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.
Rectangle2D.Floatint getLinesCount()
Get number of lines in a paragraph.
Example:Presentation pres = new Presentation(); try { ISlide sld = pres.getSlides().get_Item(0); IAutoShape ashp = sld.getShapes().addAutoShape(ShapeType.Rectangle, 150, 75, 150, 50); IParagraph para = ashp.getTextFrame().getParagraphs().get_Item(0); IPortion portion = para.getPortions().get_Item(0); portion.setText("Aspose Paragraph GetLinesCount() Example"); System.out.println("Lines Count = " + para.getLinesCount()); } finally { if (pres != null) pres.dispose(); }
IPortionFormat getEndParagraphPortionFormat()
Specifies the portion properties that are to be used if another portion is inserted after the last one.
void setEndParagraphPortionFormat(IPortionFormat value)
Specifies the portion properties that are to be used if another portion is inserted after the last one.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.