---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/iportion
---

# IPortion

## Overview

`IPortion` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `ISlideComponent`.

Represents a portion of text inside a text paragraph.

This interface declares 7 methods for IPortion objects in Java programs.
Available methods include: `asIPresentationComponent`, `asISlideComponent`, `getPortionFormat`, `getPresentation`, `getSlide`, `getText`, `setText`.
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 |
|------|------|--------|-------------|
| `portionFormat` | `IPortionFormat` | Read | Returns formatting object which contains explicitly set formatting properties of the text portion with no inheritance applied. |
| `text` | `String` | Read/Write | Gets the text of this portion. |
| `slide` | `IBaseSlide` | Read | Returns the parent slide. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getPortionFormat()` → `IPortionFormat` | Returns formatting object which contains explicitly set formatting properties of the text portion with no inheritance applied. |
| `getText()` → `String` | Gets the text of this portion. |
| `setText(value: String)` | Sets the text of this portion. |
| `asISlideComponent()` → `ISlideComponent` | Returns the parent slide component. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the parent presentation component. |
| `getSlide()` → `IBaseSlide` | Returns the parent slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation containing this component. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)