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

# IParagraph

## Overview

`IParagraph` is a interface in Aspose.Slides FOSS for Java.

Represents a text paragraph.

This interface provides 6 methods for working with IParagraph objects in Java programs.
Available methods include: `asIPresentationComponent`, `asISlideComponent`, `getParagraphFormat`, `getPortions`, `getText`, `setText`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `paragraphFormat`, `portions`, `text`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `portions` | `IPortionCollection` | Read | Returns the collection of text portions in this paragraph. |
| `paragraphFormat` | `IParagraphFormat` | Read | Returns the paragraph formatting properties. |
| `text` | `String` | Read | Gets the text of this paragraph. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getPortions()` → `IPortionCollection` | Returns the collection of text portions in this paragraph. |
| `getParagraphFormat()` → `IParagraphFormat` | Returns the paragraph formatting properties. |
| `getText()` → `String` | Gets the text of this paragraph. |
| `setText(value: String)` | Sets the text of this paragraph. |
| `asISlideComponent()` → `ISlideComponent` | Returns the parent slide component. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the parent presentation component. |

## See Also

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