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

NameTypeAccessDescription
portionsIPortionCollectionReadGets the portions.
paragraphFormatIParagraphFormatReadGets the paragraph format.
textStringReadGets the text.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the 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 portions.
getParagraphFormat() → IParagraphFormatReturns the paragraph format.
getText() → StringReturns the text.
setText(value: String)Sets the text value.
asISlideComponent() → ISlideComponentCasts the paragraph to an ISlideComponent interface
asIPresentationComponent() → IPresentationComponentCasts the paragraph to an IPresentationComponent interface
getSlide() → IBaseSlideReturns the slide.
setSlide(slide: IBaseSlide)Sets the parent slide for this paragraph.
getPresentation() → IPresentationReturns the presentation.

See Also

 English