Paragraph

Paragraph class

Represents a paragraph of text.

Paragraph

NameDescription
Paragraph()Initializes a new instance of the Paragraph class with default properties.

Returns: Paragraph


Paragraph

NameDescription
Paragraph(Paragraph)Copy function that initializes a new instance of a Paragraph class.

Returns: Paragraph


getEndParagraphPortionFormat

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

Returns: PortionFormat


getLinesCount

NameDescription
getLinesCount ()Get number of lines in a paragraph.

Returns: int


getParagraphFormat

NameDescription
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.

Returns: ParagraphFormat


getPortions

NameDescription
getPortions ()Returns the collection of a text portions. Read-only IPortionCollection.

Returns: PortionCollection


getPresentation

NameDescription
getPresentation ()Returns the parent presentation of a paragraph. Read-only IPresentation.

Returns: Presentation


getRect

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

Returns: Rectangle2D.Float


getSlide

NameDescription
getSlide ()Returns the parent slide of a paragraph. Read-only BaseSlide.

Returns: MasterHandoutSlide, BaseSlide, LayoutSlide, Slide, MasterSlide, NotesSlide, MasterNotesSlide


getText

NameDescription
getText ()Gets or sets the the plain text of a paragraph. Read/write String. Value: The text.

Returns: String


joinPortionsWithSameFormatting

NameDescription
joinPortionsWithSameFormatting ()Joins runs with same formatting.

Returns: void


setEndParagraphPortionFormat

NameDescription
setEndParagraphPortionFormat (PortionFormat)Specifies the portion properties that are to be used if another portion is inserted after the last one.

Returns: void


setText

NameDescription
setText (String)Gets or sets the the plain text of a paragraph. Read/write String. Value: The text.

Returns: void