Paragraph

Overview

Paragraph is a class in Aspose.Slides FOSS for Java. Inherits from: IParagraph, ISlideComponent, IPresentationComponent.

Represents a text paragraph.

Properties

NameTypeAccessDescription
portionsIPortionCollectionReadProvides access to the paragraph’s IPortionCollection
paragraphFormatIParagraphFormatReadProvides access to the paragraph’s IParagraphFormat
textStringReadProvides get/set access to the paragraph’s text string
slideIBaseSlideReadProvides get/set access to the paragraph’s parent slide
presentationIPresentationReadProvides get access to the paragraph’s owning presentation

Methods

SignatureDescription
Paragraph()Creates a new empty Paragraph with a detached {@code <a:p>} element.
Paragraph(pElement: Element, saveCallback: Runnable)Creates a Paragraph backed by an existing XML element.
initInternal(pElement: Element, txbodyElement: Element, slidePart: Object, parentSlide: IBaseSlide)ParagraphInitialises this paragraph from existing OOXML elements.
getPortions()IPortionCollectionReturns the collection of Portion objects contained in the paragraph
getParagraphFormat()IParagraphFormatReturns the IParagraphFormat that defines formatting for the paragraph
getText()StringReturns the plain text content of the paragraph
setText(value: String)Sets the paragraph’s text to the specified string value
asISlideComponent()ISlideComponent
asIPresentationComponent()IPresentationComponent
getSlide()IBaseSlideReturns the parent slide that contains this paragraph
setSlide(slide: IBaseSlide)Sets the parent slide for this paragraph.
getPresentation()IPresentationReturns the presentation that owns this paragraph