---
Product: Aspose.Cells
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/java/Shape
---

# Shape

## Overview

`Shape` is a class in Aspose.Cells FOSS for Java.

Represents a drawing object (auto shape) anchored to a worksheet.

This class provides 14 methods for working with Shape objects in Java programs.
Available methods include: `getAutoShapeType`, `getGeometryType`, `getLowerRightColumn`, `getLowerRightRow`, `getName`, `getUpperLeftColumn`, `getUpperLeftRow`, `setAutoShapeType`, `setGeometryType`, `setLowerRightColumn`, `setLowerRightRow`, `setName`, and 2 additional methods.
All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: `autoShapeType`, `geometryType`, `lowerRightColumn`, `lowerRightRow`, `name`, `upperLeftColumn`, and 1 more.

## Description

`Shape` is a class in the Aspose.Cells FOSS library for Java that exposes 14 methods and 7 properties for programmatic use.

Core capabilities include: `string`; `string`; `autoshapetype`. These operations enable developers to integrate shape functionality directly into Java applications.

The class also provides the `name` property (gets or sets the display name of the shape), the `upperLeftRow` property (zero-based row index of the upper-left anchor cell), the `upperLeftColumn` property (zero-based column index of the upper-left anchor cell).

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `name` | `String` | Read | Gets or sets the display name of the shape. |
| `upperLeftRow` | `int` | Read | Zero-based row index of the upper-left anchor cell. |
| `upperLeftColumn` | `int` | Read | Zero-based column index of the upper-left anchor cell. |
| `lowerRightRow` | `int` | Read | Zero-based row index of the lower-right anchor cell. |
| `lowerRightColumn` | `int` | Read | Zero-based column index of the lower-right anchor cell. |
| `geometryType` | `String` | Read | Raw DrawingML preset geometry string (e.g. |
| `autoShapeType` | `AutoShapeType` | Read | Shape type enum. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getName()` → `String` | Gets or sets the display name of the shape. |
| `setName(value: String)` | Sets the name value. |
| `getUpperLeftRow()` → `int` | Zero-based row index of the upper-left anchor cell. |
| `setUpperLeftRow(value: int)` | Sets the upper left row value. |
| `getUpperLeftColumn()` → `int` | Zero-based column index of the upper-left anchor cell. |
| `setUpperLeftColumn(value: int)` | Sets the upper left column value. |
| `getLowerRightRow()` → `int` | Zero-based row index of the lower-right anchor cell. |
| `setLowerRightRow(value: int)` | Sets the lower right row value. |
| `getLowerRightColumn()` → `int` | Zero-based column index of the lower-right anchor cell. |
| `setLowerRightColumn(value: int)` | Sets the lower right column value. |
| `getGeometryType()` → `String` | Raw DrawingML preset geometry string (e.g. |
| `setGeometryType(value: String)` | Sets the geometry type value. |
| `getAutoShapeType()` → `AutoShapeType` | Shape type enum. |
| `setAutoShapeType(value: AutoShapeType)` | Sets the auto shape type value. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)
- [Aspose.Cells for Java — Enterprise API Reference](https://reference.aspose.com/cells/java/com.aspose.cells/shape/)