AutoShape

Overview

AutoShape is a class in Aspose.Slides FOSS for Java. Inherits from: GeometryShape, IAutoShape.

Represents an AutoShape.

Properties

NameTypeAccessDescription
shapeTypeShapeTypeRead{@inheritDoc}

Checks for custom geometry ({@code }) in addition to the base class preset geometry lookup.

/ | | `textFrame` | `ITextFrame` | Read | Property provides access to the associated ITextFrame | | `textBox` | `boolean` | Read | Property indicates if the shape is a text box | | `asIGeometryShape` | `IGeometryShape` | Read | Property exposes the shape as an IGeometryShape | | `fillFormat` | `IFillFormat` | Read | {@inheritDoc} / |

Methods

SignatureDescription
AutoShape(xmlElement: Element, saveCallback: Runnable)Creates an AutoShape backed by the given XML element.
AutoShape()Creates an AutoShape with no backing element.
getShapeType()ShapeType{@inheritDoc}

Checks for custom geometry ({@code }) in addition to the base class preset geometry lookup.

/ | | `setShapeType(value: ShapeType)` | {@inheritDoc}

Removes any existing custom geometry ({@code }) before applying the preset, and clears children of an existing {@code }.

/ | | `getTextFrame()` → `ITextFrame` | Returns the ITextFrame associated with this AutoShape | | `isTextBox()` → `boolean` | Indicates whether this AutoShape functions as a text box | | `getAsIGeometryShape()` → `IGeometryShape` | Returns this AutoShape as an IGeometryShape | | `addTextFrame(text: String)` → `ITextFrame` | Adds a new text frame with the given text and returns the ITextFrame | | `getFillFormat()` → `IFillFormat` | {@inheritDoc} / |

See Also