Portion

Overview

Portion is a class in Aspose.Slides FOSS for Java. Inherits from: IPortion.

Represents a text portion (run) within a paragraph.

This class provides 11 methods for working with Portion objects in Java programs. Available methods include: Portion, asIPresentationComponent, asISlideComponent, getPortionFormat, getPresentation, getSlide, getText, setSlide, setText. All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: portionFormat, presentation, slide, text.

Properties

NameTypeAccessDescription
textStringReadGets the text.
portionFormatIPortionFormatReadGets the portion format.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the presentation.

Methods

SignatureDescription
Portion()Creates a new empty Portion with a detached {@code <a:r>} element.
Portion(text: String)Creates a new Portion with the given text.
Portion(runElement: Element, saveCallback: Runnable)Creates a Portion backed by an existing XML run element.
getText()StringReturns the text.
setText(value: String)Sets the text value.
getPortionFormat()IPortionFormatReturns the portion format.
asISlideComponent()ISlideComponent
asIPresentationComponent()IPresentationComponent
getSlide()IBaseSlideReturns the slide.
setSlide(slide: IBaseSlide)Sets the parent slide for this portion.
getPresentation()IPresentationReturns the presentation.

See Also