Portion
Overview
Portion is a class in Aspose.Slides FOSS for Java.
Inherits from: IPortion.
Represents a text portion (run) within a paragraph.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
text | String | Read | Gets or sets the portion’s text |
portionFormat | IPortionFormat | Read | Provides access to the portion’s formatting |
slide | IBaseSlide | Read | Gets or sets the parent slide of the portion |
presentation | IPresentation | Read | Gets the presentation containing the portion |
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 | |
setText(value: String) | Sets the text content of the portion |
getPortionFormat() → IPortionFormat | Returns the IPortionFormat associated with the portion |
asISlideComponent() → ISlideComponent | |
asIPresentationComponent() → IPresentationComponent | |
getSlide() → IBaseSlide | Returns the parent slide of the portion |
setSlide(slide: IBaseSlide) | Sets the parent slide for this portion. |
getPresentation() → IPresentation | Returns the presentation that contains the portion |