IShape

Overview

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

Represents a shape on a slide.

This interface declares 42 methods for IShape objects in Java programs. Available methods include: asIPresentationComponent, getAlternativeText, getAlternativeTextTitle, getAsISlideComponent, getCNvPr, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getLineFormat, and 30 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: alternativeText, alternativeTextTitle, asISlideComponent, cNvPr, connectionSiteCount, customData, and 23 more.

Properties

NameTypeAccessDescription
textHolderbooleanReadDetermines whether the shape is a text holder.
placeholderIPlaceholderReadReturns the placeholder for this shape.
customDataICustomDataReadReturns the shape’s custom data.
rawFrameIShapeFrameRead/WriteReturns the raw shape frame’s properties.
frameIShapeFrameRead/WriteReturns 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.
hiddenbooleanRead/WriteDetermines whether the shape is hidden.
zOrderPositionintReadReturns the position of a shape in the z-order.
connectionSiteCountintReadReturns the number of connection sites on the shape.
rotationdoubleRead/WriteReturns the rotation angle of the shape in degrees.
xdoubleRead/WriteGets the x-coordinate of the upper-left corner of the shape, in points.
ydoubleRead/WriteGets the y-coordinate of the upper-left corner of the shape, in points.
widthdoubleRead/WriteGets the width of the shape, in points.
heightdoubleRead/WriteGets the height of the shape, in points.
alternativeTextStringRead/WriteReturns or sets the alternative text associated with a shape.
alternativeTextTitleStringRead/WriteReturns or sets the title of alternative text associated with a shape.
nameStringRead/WriteReturns or sets the name of a shape.
decorativebooleanRead/WriteGets 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}.
slideIBaseSlideReadReturns the parent slide.
presentationIPresentationReadReturns the presentation containing this component.

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}.
getSlide() → IBaseSlideReturns the parent slide.
asIPresentationComponent() → IPresentationComponentReturns the base {@link IPresentationComponent} interface.
getPresentation() → IPresentationReturns the presentation containing this component.

See Also

 English