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

# TextFrameFormat

## Overview

`TextFrameFormat` is a class in Aspose.Slides FOSS for Java.
Inherits from: `PVIObject`, `ITextFrameFormat`.

Contains the TextFrame's formatting properties.

This class provides 37 methods for working with TextFrameFormat objects in Java programs.
Available methods include: `PVIObject`, `TextFrameFormat`, `asIPresentationComponent`, `getAnchoringType`, `getAutofitType`, `getCenterText`, `getColumnCount`, `getColumnSpacing`, `getMarginBottom`, `getMarginLeft`, `getMarginRight`, `getMarginTop`, and 24 additional methods.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `anchoringType`, `autofitType`, `centerText`, `columnCount`, `columnSpacing`, `keepTextFlat`, and 12 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `txBodyElement` | `Element` | Read | Returns the underlying {@code } XML element. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |
| `marginLeft` | `double` | Read | {@inheritDoc} |
| `marginRight` | `double` | Read | {@inheritDoc} |
| `marginTop` | `double` | Read | {@inheritDoc} |
| `marginBottom` | `double` | Read | {@inheritDoc} |
| `wrapText` | `NullableBool` | Read | {@inheritDoc} |
| `anchoringType` | `TextAnchorType` | Read | {@inheritDoc} |
| `centerText` | `NullableBool` | Read | {@inheritDoc} |
| `textVerticalType` | `TextVerticalType` | Read | {@inheritDoc} |
| `autofitType` | `TextAutofitType` | Read | {@inheritDoc} |
| `columnCount` | `int` | Read | {@inheritDoc} |
| `columnSpacing` | `double` | Read | {@inheritDoc} |
| `rotationAngle` | `double` | Read | {@inheritDoc} |
| `transform` | `TextShapeType` | Read | {@inheritDoc} |
| `keepTextFlat` | `boolean` | Read | {@inheritDoc} |
| `threeDFormat` | `IThreeDFormat` | Read | {@inheritDoc} |
| `slide` | `IBaseSlide` | Read | Gets the slide. |

## Methods

| Signature | Description |
|-----------|-------------|
| `TextFrameFormat(txBodyElement: Element, saveCallback: Runnable)` | Creates a TextFrameFormat backed by the given text body element. |
| `getTxBodyElement()` → `Element` | Returns the underlying {@code } XML element. |
| `TextFrameFormat()` | Creates a new detached TextFrameFormat with a standalone {@code }
 containing an empty {@code }. |
| `initInternal(txBodyElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` → `TextFrameFormat` | Initializes this format with the real XML element from a slide part. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |
| `getMarginLeft()` → `double` | {@inheritDoc} |
| `setMarginLeft(value: double)` | {@inheritDoc} |
| `getMarginRight()` → `double` | {@inheritDoc} |
| `setMarginRight(value: double)` | {@inheritDoc} |
| `getMarginTop()` → `double` | {@inheritDoc} |
| `setMarginTop(value: double)` | {@inheritDoc} |
| `getMarginBottom()` → `double` | {@inheritDoc} |
| `setMarginBottom(value: double)` | {@inheritDoc} |
| `getWrapText()` → `NullableBool` | {@inheritDoc} |
| `setWrapText(value: NullableBool)` | {@inheritDoc} |
| `getAnchoringType()` → `TextAnchorType` | {@inheritDoc} |
| `setAnchoringType(value: TextAnchorType)` | {@inheritDoc} |
| `getCenterText()` → `NullableBool` | {@inheritDoc} |
| `setCenterText(value: NullableBool)` | {@inheritDoc} |
| `getTextVerticalType()` → `TextVerticalType` | {@inheritDoc} |
| `setTextVerticalType(value: TextVerticalType)` | {@inheritDoc} |
| `getAutofitType()` → `TextAutofitType` | {@inheritDoc} |
| `setAutofitType(value: TextAutofitType)` | {@inheritDoc} |
| `getColumnCount()` → `int` | {@inheritDoc} |
| `setColumnCount(value: int)` | {@inheritDoc} |
| `getColumnSpacing()` → `double` | {@inheritDoc} |
| `setColumnSpacing(value: double)` | {@inheritDoc} |
| `getRotationAngle()` → `double` | {@inheritDoc} |
| `setRotationAngle(value: double)` | {@inheritDoc} |
| `getTransform()` → `TextShapeType` | {@inheritDoc} |
| `setTransform(value: TextShapeType)` | {@inheritDoc} |
| `isKeepTextFlat()` → `boolean` | {@inheritDoc} |
| `setKeepTextFlat(value: boolean)` | {@inheritDoc} |
| `getThreeDFormat()` → `IThreeDFormat` | {@inheritDoc} |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |

## See Also

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