IShape

Overview

IShape is a interface in Aspose.Slides FOSS for Java. Inherits from: ISlideComponent, IPresentationComponent, IHyperlinkContainer.

Represents a shape on a slide.

Properties

NameTypeAccessDescription
textHolderbooleanReadDetermines whether the shape is a text holder.
placeholderIPlaceholderReadReturns the placeholder for this shape.
customDataICustomDataReadReturns the shape’s custom data.
rawFrameIShapeFrameReadReturns the raw shape frame’s properties.
frameIShapeFrameReadReturns the shape frame’s properties.
lineFormatILineFormatReadReturns the line format for this shape.
threeDFormatIThreeDFormatReadReturns the 3-D format for this shape.
effectFormatIEffectFormatReadReturns the effect format for this shape.
fillFormatIFillFormatReadReturns the fill format for this shape.
hiddenbooleanReadDetermines whether the shape is hidden.
zOrderPositionintReadReturns the position of a shape in the z-order.
connectionSiteCountintReadReturns the number of connection sites on the shape.
rotationdoubleReadReturns the rotation angle of the shape in degrees.
xdoubleReadGets the x-coordinate of the upper-left corner of the shape, in points.
ydoubleReadGets the y-coordinate of the upper-left corner of the shape, in points.
widthdoubleReadGets the width of the shape, in points.
heightdoubleReadGets the height of the shape, in points.
alternativeTextStringReadReturns or sets the alternative text associated with a shape.
alternativeTextTitleStringReadReturns or sets the title of alternative text associated with a shape.
nameStringReadReturns or sets the name of a shape.
decorativebooleanReadGets or sets the ‘Mark as decorative’ option.
uniqueIdintReadReturns an internal, presentation-scoped identifier.
officeInteropShapeIdintReadReturns a slide-scoped unique identifier that remains constant
for the lifetime of the shape.
groupedbooleanReadDetermines whether the shape is grouped.
asISlideComponentISlideComponentReadAllows to get base {@link ISlideComponent} interface.
shapeTypeShapeTypeReadGets the AutoShape type.
cNvPrElementReadReturns the {@code cNvPr} element for this shape, or {@code null}.

Methods

SignatureDescription
isTextHolder()booleanDetermines whether the shape is a text holder.
getPlaceholder()IPlaceholderReturns the placeholder for this shape.
getCustomData()ICustomDataReturns the shape’s custom data.
getRawFrame()IShapeFrameReturns the raw shape frame’s properties.
setRawFrame(value: IShapeFrame)Sets the raw shape frame’s properties.
getFrame()IShapeFrameReturns the shape frame’s properties.
setFrame(value: IShapeFrame)Sets the shape frame’s properties.
getLineFormat()ILineFormatReturns the line format for this shape.
getThreeDFormat()IThreeDFormatReturns the 3-D format for this shape.
getEffectFormat()IEffectFormatReturns the effect format for this shape.
getFillFormat()IFillFormatReturns the fill format for this shape.
isHidden()booleanDetermines whether the shape is hidden.
setHidden(value: boolean)Sets whether the shape is hidden.
getZOrderPosition()intReturns the position of a shape in the z-order.
getConnectionSiteCount()intReturns the number of connection sites on the shape.
getRotation()doubleReturns the rotation angle of the shape in degrees.
setRotation(rotation: double)Sets the rotation angle of the shape in degrees.
getX()doubleGets 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()doubleGets 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()doubleGets the width of the shape, in points.
setWidth(width: double)Sets the width of the shape, in points.
getHeight()doubleGets the height of the shape, in points.
setHeight(height: double)Sets the height of the shape, in points.
getAlternativeText()StringReturns or sets the alternative text associated with a shape.
setAlternativeText(value: String)Sets the alternative text associated with a shape.
getAlternativeTextTitle()StringReturns 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()StringReturns or sets the name of a shape.
setName(value: String)Sets the name of a shape.
isDecorative()booleanGets or sets the ‘Mark as decorative’ option.
setDecorative(value: boolean)Sets the ‘Mark as decorative’ option.
getUniqueId()intReturns an internal, presentation-scoped identifier.
getOfficeInteropShapeId()intReturns a slide-scoped unique identifier that remains constant
for the lifetime of the shape.
isGrouped()booleanDetermines whether the shape is grouped.
getAsISlideComponent()ISlideComponentAllows to get base {@link ISlideComponent} interface.
getShapeType()ShapeTypeGets the AutoShape type.
getCNvPr()ElementReturns the {@code cNvPr} element for this shape, or {@code null}.

See Also