Paragraph
Overview
Paragraph is a class in Aspose.Slides FOSS for Java.
Inherits from: IParagraph, ISlideComponent, IPresentationComponent.
Represents a text paragraph.
This class provides 12 methods for working with Paragraph objects in Java programs.
Available methods include: Paragraph, asIPresentationComponent, asISlideComponent, getParagraphFormat, getPortions, getPresentation, getSlide, getText, initInternal, setSlide, setText.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: paragraphFormat, portions, presentation, slide, text.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
portions | IPortionCollection | Read | Gets the portions. |
paragraphFormat | IParagraphFormat | Read | Gets the paragraph format. |
text | String | Read | Gets the text. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the 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 portions. |
getParagraphFormat() → IParagraphFormat | Returns the paragraph format. |
getText() → String | Returns the text. |
setText(value: String) | Sets the text value. |
asISlideComponent() → ISlideComponent | Casts the paragraph to an ISlideComponent interface |
asIPresentationComponent() → IPresentationComponent | Casts the paragraph to an IPresentationComponent interface |
getSlide() → IBaseSlide | Returns the slide. |
setSlide(slide: IBaseSlide) | Sets the parent slide for this paragraph. |
getPresentation() → IPresentation | Returns the presentation. |