Shape

Overview

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

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

This class declares 14 methods for Shape objects in Java programs. Available methods include: getAutoShapeType, getGeometryType, getLowerRightColumn, getLowerRightRow, getName, getUpperLeftColumn, getUpperLeftRow, setAutoShapeType, setGeometryType, setLowerRightColumn, setLowerRightRow, setName, and 2 additional methods. Public 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.

Properties

NameTypeAccessDescription
nameStringRead/WriteGets or sets the display name of the shape.
upperLeftRowintRead/WriteZero-based row index of the upper-left anchor cell.
upperLeftColumnintRead/WriteZero-based column index of the upper-left anchor cell.
lowerRightRowintRead/WriteZero-based row index of the lower-right anchor cell.
lowerRightColumnintRead/WriteZero-based column index of the lower-right anchor cell.
geometryTypeStringRead/WriteRaw DrawingML preset geometry string (e.g. “rect”, “rightArrow”).
autoShapeTypeAutoShapeTypeRead/WriteShape 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. “rect”, “rightArrow”).
setGeometryType(value: String)Sets the geometry type value.
getAutoShapeType() → AutoShapeTypeShape type enum.
setAutoShapeType(value: AutoShapeType)Sets the auto shape type value.

See Also

 English