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

NameTypeAccessDescription
nameStringReadGets or sets the display name of the shape.
upperLeftRowintReadZero-based row index of the upper-left anchor cell.
upperLeftColumnintReadZero-based column index of the upper-left anchor cell.
lowerRightRowintReadZero-based row index of the lower-right anchor cell.
lowerRightColumnintReadZero-based column index of the lower-right anchor cell.
geometryTypeStringReadRaw DrawingML preset geometry string (e.g.
autoShapeTypeAutoShapeTypeReadShape type enum.

Methods

SignatureDescription
getName()StringGets or sets the display name of the shape.
setName(value: String)Sets the name value.
getUpperLeftRow()intZero-based row index of the upper-left anchor cell.
setUpperLeftRow(value: int)Sets the upper left row value.
getUpperLeftColumn()intZero-based column index of the upper-left anchor cell.
setUpperLeftColumn(value: int)Sets the upper left column value.
getLowerRightRow()intZero-based row index of the lower-right anchor cell.
setLowerRightRow(value: int)Sets the lower right row value.
getLowerRightColumn()intZero-based column index of the lower-right anchor cell.
setLowerRightColumn(value: int)Sets the lower right column value.
getGeometryType()StringRaw DrawingML preset geometry string (e.g.
setGeometryType(value: String)Sets the geometry type value.
getAutoShapeType()AutoShapeTypeShape type enum.
setAutoShapeType(value: AutoShapeType)Sets the auto shape type value.

See Also