public class SpreadsheetShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Represents a drawing shape in an Excel document.
Modifier and Type | Method and Description |
---|---|
String |
getAlternativeText()
Gets the descriptive (alternative) text associated with this
SpreadsheetShape . |
int |
getAutoShapeType()
Gets the auto shape type.
|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
SpreadsheetShape . |
double |
getHeight()
Gets the height of this
SpreadsheetShape in points. |
String |
getHyperlink()
Gets the hyperlink associated with this
SpreadsheetShape . |
int |
getId()
Gets the identifier of this
SpreadsheetShape . |
SpreadsheetWatermarkableImage |
getImage()
Gets the image of this
SpreadsheetShape . |
SpreadsheetImageFillFormat |
getImageFillFormat()
Gets the image fill format settings of this
SpreadsheetShape . |
int |
getMsoDrawingType()
Gets the mso drawing type.
|
String |
getName()
Gets the name of this
SpreadsheetShape . |
double |
getRotateAngle()
Gets the rotate angle of this
SpreadsheetShape in degrees. |
String |
getText()
Gets the text of this
SpreadsheetShape . |
double |
getWidth()
Gets the width of this
SpreadsheetShape in points. |
SpreadsheetWorksheet |
getWorksheet()
Gets the parent worksheet of this
SpreadsheetShape . |
double |
getX()
Gets the horizontal offset of this
SpreadsheetShape from worksheet left border in points. |
double |
getY()
Gets the vertical offset of this
SpreadsheetShape from worksheet top border in points. |
boolean |
isWordArt()
Gets a value indicating whether this
SpreadsheetShape is a WordArt object. |
void |
setAlternativeText(String value)
Sets the descriptive (alternative) text associated with this
SpreadsheetShape . |
void |
setHeight(double value)
Sets the height of this
SpreadsheetShape in points. |
void |
setHyperlink(String value)
Sets the hyperlink associated with this
SpreadsheetShape . |
void |
setImage(SpreadsheetWatermarkableImage value)
Sets the image of this
SpreadsheetShape . |
void |
setRotateAngle(double value)
Sets the rotate angle of this
SpreadsheetShape in degrees. |
void |
setText(String value)
Sets the text of this
SpreadsheetShape . |
void |
setWidth(double value)
Sets the width of this
SpreadsheetShape in points. |
void |
setX(double value)
Sets the horizontal offset of this
SpreadsheetShape from worksheet left border in points. |
void |
setY(double value)
Sets the vertical offset of this
SpreadsheetShape from worksheet top border in points. |
public final SpreadsheetWorksheet getWorksheet()
Gets the parent worksheet of this SpreadsheetShape
.
SpreadsheetShape
.public final int getAutoShapeType()
Gets the auto shape type.
public final int getMsoDrawingType()
Gets the mso drawing type.
public final String getText()
Gets the text of this SpreadsheetShape
.
SpreadsheetShape
.public final void setText(String value)
Sets the text of this SpreadsheetShape
.
value
- The text of this SpreadsheetShape
.public final FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this SpreadsheetShape
.
SpreadsheetShape
.public final SpreadsheetWatermarkableImage getImage()
Gets the image of this SpreadsheetShape
.
SpreadsheetShape
.
Returns null if the shape has no image.public final void setImage(SpreadsheetWatermarkableImage value)
Sets the image of this SpreadsheetShape
.
value
- The image of this SpreadsheetShape
.
Returns null if the shape has no image.public final SpreadsheetImageFillFormat getImageFillFormat()
Gets the image fill format settings of this SpreadsheetShape
.
SpreadsheetShape
.public final int getId()
Gets the identifier of this SpreadsheetShape
.
SpreadsheetShape
.public final String getAlternativeText()
Gets the descriptive (alternative) text associated with this SpreadsheetShape
.
SpreadsheetShape
.public final void setAlternativeText(String value)
Sets the descriptive (alternative) text associated with this SpreadsheetShape
.
value
- The descriptive (alternative) text associated with this SpreadsheetShape
.public final boolean isWordArt()
Gets a value indicating whether this SpreadsheetShape
is a WordArt object.
public final String getName()
Gets the name of this SpreadsheetShape
.
SpreadsheetShape
.public final String getHyperlink()
Gets the hyperlink associated with this SpreadsheetShape
.
SpreadsheetShape
.public final void setHyperlink(String value)
Sets the hyperlink associated with this SpreadsheetShape
.
value
- The hyperlink associated with this SpreadsheetShape
.public final double getX()
Gets the horizontal offset of this SpreadsheetShape
from worksheet left border in points.
getX
in interface ITwoDObject
SpreadsheetShape
.public final void setX(double value)
Sets the horizontal offset of this SpreadsheetShape
from worksheet left border in points.
value
- The x-coordinate of this SpreadsheetShape
.public final double getY()
Gets the vertical offset of this SpreadsheetShape
from worksheet top border in points.
getY
in interface ITwoDObject
SpreadsheetShape
.public final void setY(double value)
Sets the vertical offset of this SpreadsheetShape
from worksheet top border in points.
value
- The y-coordinate of this SpreadsheetShape
.public final double getWidth()
Gets the width of this SpreadsheetShape
in points.
getWidth
in interface ITwoDObject
SpreadsheetShape
in points.public final void setWidth(double value)
Sets the width of this SpreadsheetShape
in points.
value
- The width of this SpreadsheetShape
in points.public final double getHeight()
Gets the height of this SpreadsheetShape
in points.
getHeight
in interface ITwoDObject
SpreadsheetShape
in points.public final void setHeight(double value)
Sets the height of this SpreadsheetShape
in points.
value
- The height of this SpreadsheetShape
in points.public final double getRotateAngle()
Gets the rotate angle of this SpreadsheetShape
in degrees.
getRotateAngle
in interface IRotatableTwoDObject
SpreadsheetShape
in degrees.public final void setRotateAngle(double value)
Sets the rotate angle of this SpreadsheetShape
in degrees.
value
- The rotate angle of this SpreadsheetShape
in degrees.Copyright © 2020. All rights reserved.