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

# IAutoShape

## Overview

`IAutoShape` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IGeometryShape`.

Represents an AutoShape.

This interface declares 49 methods for IAutoShape objects in Java programs.
Available methods include: `addTextFrame`, `asIPresentationComponent`, `getAdjustments`, `getAlternativeText`, `getAlternativeTextTitle`, `getAsIGeometryShape`, `getAsISlideComponent`, `getCNvPr`, `getConnectionSiteCount`, `getCustomData`, `getEffectFormat`, `getFillFormat`, and 37 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `adjustments`, `alternativeText`, `alternativeTextTitle`, `asIGeometryShape`, `asISlideComponent`, `cNvPr`, and 28 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `textFrame` | `ITextFrame` | Read | Returns the TextFrame object for the AutoShape. |
| `textBox` | `boolean` | Read | Specifies if the shape is a text box. |
| `asIGeometryShape` | `IGeometryShape` | Read | Allows to get base IGeometryShape interface. |
| `shapeStyle` | `IShapeStyle` | Read | Returns the shape's style object. |
| `adjustments` | `IAdjustValueCollection` | Read | Gets the collection of shape adjustment values. |
| `textHolder` | `boolean` | Read | Determines whether the shape is a text holder. |
| `placeholder` | `IPlaceholder` | Read | Returns the placeholder for this shape. |
| `customData` | `ICustomData` | Read | Returns the shape's custom data. |
| `rawFrame` | `IShapeFrame` | Read/Write | Returns the raw shape frame's properties. |
| `frame` | `IShapeFrame` | Read/Write | Returns the shape frame's properties. |
| `lineFormat` | `ILineFormat` | Read | Returns the line format for this shape. |
| `threeDFormat` | `IThreeDFormat` | Read | Returns the 3-D format for this shape. |
| `effectFormat` | `IEffectFormat` | Read | Returns the effect format for this shape. |
| `fillFormat` | `IFillFormat` | Read | Returns the fill format for this shape. |
| `hidden` | `boolean` | Read/Write | Determines whether the shape is hidden. |
| `zOrderPosition` | `int` | Read | Returns the position of a shape in the z-order. |
| `connectionSiteCount` | `int` | Read | Returns the number of connection sites on the shape. |
| `rotation` | `double` | Read/Write | Returns the rotation angle of the shape in degrees. |
| `x` | `double` | Read/Write | Gets the x-coordinate of the upper-left corner of the shape, in points. |
| `y` | `double` | Read/Write | Gets the y-coordinate of the upper-left corner of the shape, in points. |
| `width` | `double` | Read/Write | Gets the width of the shape, in points. |
| `height` | `double` | Read/Write | Gets the height of the shape, in points. |
| `alternativeText` | `String` | Read/Write | Returns or sets the alternative text associated with a shape. |
| `alternativeTextTitle` | `String` | Read/Write | Returns or sets the title of alternative text associated with a shape. |
| `name` | `String` | Read/Write | Returns or sets the name of a shape. |
| `decorative` | `boolean` | Read/Write | Gets or sets the 'Mark as decorative' option. |
| `uniqueId` | `int` | Read | Returns an internal, presentation-scoped identifier. |
| `officeInteropShapeId` | `int` | Read | Returns a slide-scoped unique identifier that remains constant for the lifetime of the shape. |
| `grouped` | `boolean` | Read | Determines whether the shape is grouped. |
| `asISlideComponent` | `ISlideComponent` | Read | Allows to get base {@link ISlideComponent} interface. |
| `shapeType` | `ShapeType` | Read/Write | Gets the AutoShape type. |
| `cNvPr` | `Element` | Read | Returns the {@code cNvPr} element for this shape, or {@code null}. |
| `slide` | `IBaseSlide` | Read | Returns the parent slide. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getTextFrame()` → `ITextFrame` | Returns the TextFrame object for the AutoShape. |
| `isTextBox()` → `boolean` | Specifies if the shape is a text box. |
| `getAsIGeometryShape()` → `IGeometryShape` | Allows to get base IGeometryShape interface. |
| `addTextFrame(text: String)` → `ITextFrame` | Adds a new text frame to the shape with the specified text. |
| `getShapeStyle()` → `IShapeStyle` | Returns the shape's style object. |
| `setShapeType(value: ShapeType)` | Sets the AutoShape type. |
| `getAdjustments()` → `IAdjustValueCollection` | Gets the collection of shape adjustment values. |
| `isTextHolder()` → `boolean` | Determines whether the shape is a text holder. |
| `getPlaceholder()` → `IPlaceholder` | Returns the placeholder for this shape. |
| `getCustomData()` → `ICustomData` | Returns the shape's custom data. |
| `getRawFrame()` → `IShapeFrame` | Returns the raw shape frame's properties. |
| `setRawFrame(value: IShapeFrame)` | Sets the raw shape frame's properties. |
| `getFrame()` → `IShapeFrame` | Returns the shape frame's properties. |
| `setFrame(value: IShapeFrame)` | Sets the shape frame's properties. |
| `getLineFormat()` → `ILineFormat` | Returns the line format for this shape. |
| `getThreeDFormat()` → `IThreeDFormat` | Returns the 3-D format for this shape. |
| `getEffectFormat()` → `IEffectFormat` | Returns the effect format for this shape. |
| `getFillFormat()` → `IFillFormat` | Returns the fill format for this shape. |
| `isHidden()` → `boolean` | Determines whether the shape is hidden. |
| `setHidden(value: boolean)` | Sets whether the shape is hidden. |
| `getZOrderPosition()` → `int` | Returns the position of a shape in the z-order. |
| `getConnectionSiteCount()` → `int` | Returns the number of connection sites on the shape. |
| `getRotation()` → `double` | Returns the rotation angle of the shape in degrees. |
| `setRotation(rotation: double)` | Sets the rotation angle of the shape in degrees. |
| `getX()` → `double` | Gets the x-coordinate of the upper-left corner of the shape, in points. |
| `setX(x: double)` | Sets the x-coordinate of the upper-left corner of the shape, in points. |
| `getY()` → `double` | Gets the y-coordinate of the upper-left corner of the shape, in points. |
| `setY(y: double)` | Sets the y-coordinate of the upper-left corner of the shape, in points. |
| `getWidth()` → `double` | Gets the width of the shape, in points. |
| `setWidth(width: double)` | Sets the width of the shape, in points. |
| `getHeight()` → `double` | Gets the height of the shape, in points. |
| `setHeight(height: double)` | Sets the height of the shape, in points. |
| `getAlternativeText()` → `String` | Returns or sets the alternative text associated with a shape. |
| `setAlternativeText(value: String)` | Sets the alternative text associated with a shape. |
| `getAlternativeTextTitle()` → `String` | Returns or sets the title of alternative text associated with a shape. |
| `setAlternativeTextTitle(value: String)` | Sets the title of alternative text associated with a shape. |
| `getName()` → `String` | Returns or sets the name of a shape. |
| `setName(value: String)` | Sets the name of a shape. |
| `isDecorative()` → `boolean` | Gets or sets the 'Mark as decorative' option. |
| `setDecorative(value: boolean)` | Sets the 'Mark as decorative' option. |
| `getUniqueId()` → `int` | Returns an internal, presentation-scoped identifier. |
| `getOfficeInteropShapeId()` → `int` | Returns a slide-scoped unique identifier that remains constant for the lifetime of the shape. |
| `isGrouped()` → `boolean` | Determines whether the shape is grouped. |
| `getAsISlideComponent()` → `ISlideComponent` | Allows to get base {@link ISlideComponent} interface. |
| `getShapeType()` → `ShapeType` | Gets the AutoShape type. |
| `getCNvPr()` → `Element` | Returns the {@code cNvPr} element for this shape, or {@code null}. |
| `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/)