IParagraph

All Implemented Interfaces: com.aspose.slides.ISlideComponent

public interface IParagraph extends ISlideComponent

Represents a paragraph of a text.

Methods

MethodDescription
getPortions()Returns the collection of a text portions.
getParagraphFormat()Returns the formatting object for this paragraph.
joinPortionsWithSameFormatting()Joins runs with same formatting.
getText()Gets or sets the the plain text of a paragraph.
setText(String value)Gets or sets the the plain text of a paragraph.
getRect()Get coordinates of rect that bounds paragraph.
getEndParagraphPortionFormat()Specifies the portion properties that are to be used if another portion is inserted after the last one.
setEndParagraphPortionFormat(IPortionFormat value)Specifies the portion properties that are to be used if another portion is inserted after the last one.

getPortions()

public abstract IPortionCollection getPortions()

Returns the collection of a text portions. Read-only IPortionCollection.

Returns: IPortionCollection

getParagraphFormat()

public abstract IParagraphFormat getParagraphFormat()

Returns the formatting object for this paragraph. Read-only IParagraphFormat.

Returns: IParagraphFormat

joinPortionsWithSameFormatting()

public abstract void joinPortionsWithSameFormatting()

Joins runs with same formatting.

getText()

public abstract String getText()

Gets or sets the the plain text of a paragraph. Read/write String.

Value: The text.

Returns: java.lang.String

setText(String value)

public abstract void setText(String value)

Gets or sets the the plain text of a paragraph. Read/write String.

Value: The text.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getRect()

public abstract RectF getRect()

Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.

Returns: android.graphics.RectF - Rectangle that bounds paragraph android.graphics.RectF

getEndParagraphPortionFormat()

public abstract IPortionFormat getEndParagraphPortionFormat()

Specifies the portion properties that are to be used if another portion is inserted after the last one.

Returns: IPortionFormat

setEndParagraphPortionFormat(IPortionFormat value)

public abstract void setEndParagraphPortionFormat(IPortionFormat value)

Specifies the portion properties that are to be used if another portion is inserted after the last one.

Parameters:

ParameterTypeDescription
valueIPortionFormat