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
| Name | Type | Access | Description |
|---|---|---|---|
text | String | Read | Gets the text. |
portionFormat | IPortionFormat | Read | Gets the portion format. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the presentation. |
Methods
| Signature | Description |
|---|---|
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() → String | Returns the text. |
setText(value: String) | Sets the text value. |
getPortionFormat() → IPortionFormat | Returns the portion format. |
asISlideComponent() → ISlideComponent | |
asIPresentationComponent() → IPresentationComponent | |
getSlide() → IBaseSlide | Returns the slide. |
setSlide(slide: IBaseSlide) | Sets the parent slide for this portion. |
getPresentation() → IPresentation | Returns the presentation. |