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

# ITextFrame

## Overview

`ITextFrame` is a interface in Aspose.Slides FOSS for Java.
Inherits from: `ISlideComponent`, `IPresentationComponent`.

Represents a TextFrame.

This interface provides 10 methods for working with ITextFrame objects in Java programs.
Available methods include: `asIPresentationComponent`, `asISlideComponent`, `getParagraphs`, `getParentCell`, `getParentShape`, `getPresentation`, `getSlide`, `getText`, `getTextFrameFormat`, `setText`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `paragraphs`, `parentCell`, `parentShape`, `presentation`, `slide`, `text`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `paragraphs` | `IParagraphCollection` | Read | Returns the list of all paragraphs in a frame. |
| `text` | `String` | Read | Gets the plain text for a TextFrame. |
| `textFrameFormat` | `ITextFrameFormat` | Read | Returns the formatting object for this TextFrame object. |
| `parentShape` | `IShape` | Read | Returns the parent shape, or {@code null} if the parent object does not
 implement the {@link IShape} interface. |
| `parentCell` | `ICell` | Read | Returns the parent cell, or {@code null} if the parent object does not
 implement the {@link ICell} interface. |
| `slide` | `IBaseSlide` | Read | Returns the parent slide. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getParagraphs()` → `IParagraphCollection` | Returns the list of all paragraphs in a frame. |
| `getText()` → `String` | Gets the plain text for a TextFrame. |
| `setText(value: String)` | Sets the plain text for a TextFrame. |
| `getTextFrameFormat()` → `ITextFrameFormat` | Returns the formatting object for this TextFrame object. |
| `getParentShape()` → `IShape` | Returns the parent shape, or {@code null} if the parent object does not
 implement the {@link IShape} interface. |
| `getParentCell()` → `ICell` | Returns the parent cell, or {@code null} if the parent object does not
 implement the {@link ICell} interface. |
| `asISlideComponent()` → `ISlideComponent` | Returns the base {@link ISlideComponent} interface. |
| `getSlide()` → `IBaseSlide` | Returns the parent slide. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the base {@link IPresentationComponent} interface. |
| `getPresentation()` → `IPresentation` | Returns the presentation containing this component. |

## See Also

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