Paragraph
Overview
Paragraph is a class in Aspose.Slides FOSS for Java.
Inherits from: IParagraph, ISlideComponent, IPresentationComponent.
Represents a text paragraph.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
portions | IPortionCollection | Read | Provides access to the paragraph’s IPortionCollection |
paragraphFormat | IParagraphFormat | Read | Provides access to the paragraph’s IParagraphFormat |
text | String | Read | Provides get/set access to the paragraph’s text string |
slide | IBaseSlide | Read | Provides get/set access to the paragraph’s parent slide |
presentation | IPresentation | Read | Provides get access to the paragraph’s owning presentation |
Methods
| Signature | Description |
|---|---|
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) → Paragraph | Initialises this paragraph from existing OOXML elements. |
getPortions() → IPortionCollection | Returns the collection of Portion objects contained in the paragraph |
getParagraphFormat() → IParagraphFormat | Returns the IParagraphFormat that defines formatting for the paragraph |
getText() → String | Returns 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() → IBaseSlide | Returns the parent slide that contains this paragraph |
setSlide(slide: IBaseSlide) | Sets the parent slide for this paragraph. |
getPresentation() → IPresentation | Returns the presentation that owns this paragraph |