public class SpreadsheetShape extends ShapeSearchAdapter implements IRotatableTwoDObject, IHyperlinkContainer
Represents a drawing shape in an Excel document.
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativeText()
Gets the descriptive (alternative) text associated with this
. |
com.aspose.cells.Shape |
getAsposeCellsShape() |
int |
getAutoShapeType()
Gets the auto shape type.
|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
FormattedTextFragmentCollection |
getFormattedTextFragmentsForSearch() |
double |
getHeight()
Gets the height of this
in points. |
String |
getHyperlink()
Gets the hyperlink associated with this
. |
int |
getId()
Gets the identifier of this
. |
SpreadsheetWatermarkableImage |
getImage()
Gets the image of this
. |
SpreadsheetImageFillFormat |
getImageFillFormat()
Gets the image fill format settings of this
. |
WatermarkableImage |
getImageForSearch() |
int |
getMsoDrawingType()
Gets the mso drawing type.
|
String |
getName()
Gets the name of this
. |
double |
getRotateAngle()
Gets or sets the rotate angle of this
in degrees. |
String |
getText()
Gets the text of this
. |
String |
getTextForSearch() |
double |
getWidth()
Gets the width of this
in points. |
SpreadsheetWorksheet |
getWorksheet()
Gets the parent worksheet of this
. |
double |
getX()
Gets the horizontal offset of this
from worksheet left border in points. |
double |
getY()
Gets the vertical offset of this
from worksheet top border in points. |
boolean |
isWordArt()
Gets a value indicating whether this
is a WordArt object. |
void |
setAlternativeText(String value)
Sets the descriptive (alternative) text associated with this
. |
void |
setFoundWatermarkImage(byte[] imageData) |
void |
setFoundWatermarkText(String value) |
void |
setHeight(double value)
Sets the height of this
in points. |
void |
setHyperlink(String value)
Sets the hyperlink associated with this
. |
void |
setImage(SpreadsheetWatermarkableImage value)
Sets the image of this
. |
void |
setRotateAngle(double value)
Gets or sets the rotate angle of this
in degrees. |
void |
setText(String value)
Sets the text of this
. |
void |
setWidth(double value)
Sets the width of this
in points. |
void |
setX(double value)
Sets the horizontal offset of this
from worksheet left border in points. |
void |
setY(double value)
Sets the vertical offset of this
from worksheet top border in points. |
getPageNumberpublic final String getAlternativeText()
SpreadsheetShape.SpreadsheetShape.public final com.aspose.cells.Shape getAsposeCellsShape()
public final int getAutoShapeType()
Gets the auto shape type.
public final FormattedTextFragmentCollection getFormattedTextFragments()
SpreadsheetShape.SpreadsheetShape.public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
getFormattedTextFragmentsForSearch in class ShapeSearchAdapterpublic final double getHeight()
SpreadsheetShape in points.getHeight in interface ITwoDObjectSpreadsheetShape in points.public final String getHyperlink()
SpreadsheetShape.getHyperlink in interface IHyperlinkContainerSpreadsheetShape.public final int getId()
SpreadsheetShape.SpreadsheetShape.public final SpreadsheetWatermarkableImage getImage()
SpreadsheetShape.SpreadsheetShape or null if the shape has no image.public final SpreadsheetImageFillFormat getImageFillFormat()
SpreadsheetShape.SpreadsheetShape.public WatermarkableImage getImageForSearch()
getImageForSearch in class ShapeSearchAdapterpublic final int getMsoDrawingType()
Gets the mso drawing type.
public final String getName()
SpreadsheetShape.SpreadsheetShape.public final double getRotateAngle()
SpreadsheetShape in degrees.getRotateAngle in interface IRotatableTwoDObjectSpreadsheetShape in degrees.public final String getText()
SpreadsheetShape.SpreadsheetShape.public String getTextForSearch()
getTextForSearch in class ShapeSearchAdapterpublic final double getWidth()
SpreadsheetShape in points.getWidth in interface ITwoDObjectSpreadsheetShape in points.public final SpreadsheetWorksheet getWorksheet()
SpreadsheetShape.SpreadsheetShape.public final double getX()
SpreadsheetShape from worksheet left border in points.getX in interface ITwoDObjectSpreadsheetShape.public final double getY()
SpreadsheetShape from worksheet top border in points.getY in interface ITwoDObjectSpreadsheetShape.public final boolean isWordArt()
SpreadsheetShape is a WordArt object.public final void setAlternativeText(String value)
SpreadsheetShape.value - The descriptive (alternative) text associated with this SpreadsheetShape.public void setFoundWatermarkImage(byte[] imageData)
setFoundWatermarkImage in class ShapeSearchAdapterpublic void setFoundWatermarkText(String value)
setFoundWatermarkText in class ShapeSearchAdapterpublic final void setHeight(double value)
SpreadsheetShape in points.value - The height of this SpreadsheetShape in points.public final void setHyperlink(String value)
SpreadsheetShape.setHyperlink in interface IHyperlinkContainervalue - The hyperlink associated with this SpreadsheetShape.public final void setImage(SpreadsheetWatermarkableImage value)
SpreadsheetShape.value - The image of this SpreadsheetShape or null if the image should be removed.public final void setRotateAngle(double value)
SpreadsheetShape in degrees.value - The rotate angle of this SpreadsheetShape in degrees.public final void setText(String value)
SpreadsheetShape.value - The text of this SpreadsheetShape.public final void setWidth(double value)
SpreadsheetShape in points.value - The width of this SpreadsheetShape in points.public final void setX(double value)
SpreadsheetShape from worksheet left border in points.value - The x-coordinate of this SpreadsheetShape.public final void setY(double value)
SpreadsheetShape from worksheet top border in points.value - The y-coordinate of this SpreadsheetShape.Copyright © 2026. All rights reserved.