接口 IShape
- 所有超级接口:
IContainer
- 所有已知子接口:
IBackgroundPicture
Represents an object in the drawing layer, such as an AutoShape, chart, or picture. The Shape object is a member of the
IShapes
collection. TheShapes collection contains all the shapes on a slide.-
方法概要
修饰符和类型方法说明void
delete()
Deletes the object.Duplicates the shape and returns a reference to the new copy.void
Generate a new shape from the json string.Gets a collection of adjustment values for the specified AutoShape or connector.Returns the shape type for the specifiedIShape
object, which mustrepresent an AutoShape other than a line, freeform drawing, or connector.Returns theIRange
object that represents the cell that lies underthe lower-right corner of the object.getChart()
Returns an object that represents theIChart
contained in this shape.boolean
Gets whether the specified shape is a connector.Returns theIConnectorFormat
object that contains connectorformatting properties.getFill()
Returns theIFillFormat
object that contains fill formattingproperties for the specified chart or shape.Gets the formula of the current shape.Returns theIGroupShapes
object that represents the individual shapesin the specified group.boolean
Returns information if theIShape
contains a chart.Returns a Hyperlink object that represents the hyperlink for the shape.boolean
Gets whether the object should be printedgetLine()
Returns theILineFormat
object that contains line formattingproperties for the specified shape.boolean
Gets whether the object is locked (True if the object is locked, False if the object can be modified when the sheet is protected, read or write Boolean).getName()
Returns the name of the object.Gets the shape's parent sheetReturns theIShape
object that represents the common parent shape ofa child shape or a range of child shapes.Returns theIPictureFormat
object that contains picture formattingproperties for the specified shape.Returns the way the object is attached to the cells below it.double
Returns the rotation of the shape in degrees.Returns theITextFrame
object that contains the text and font styleproperties for the specified shape.Returns theIThreeDFormat
object that contains 3-D – effectformatting properties for the specified shape.getTitle()
Gets the title of the alternative text associated with the specified shape.Returns theIRange
object that represents the cell that lies underthe upper-left corner of the specified object.getType()
Returns the shape typeboolean
Determines whether the object is visibleint
Gets the position of the specified shape in the z-order.void
setAutoShapeType
(AutoShapeType value) Sets the shape type for the specifiedIShape
object, which mustrepresent an AutoShape other than a line, freeform drawing, or connector.void
setFormula
(String formula) Sets the formula of the current shape.void
setIsPrintable
(boolean value) Sets whether the object should be printedvoid
setLocked
(boolean value) Sets whether the object is locked (True if the object is locked, False if the object can be modified when the sheet is protected, read or write Boolean).void
Sets the name of the object.void
setPlacement
(Placement value) Sets the way the object is attached to the cells below it.void
setRotation
(double value) Sets the rotation of the shape in degrees.void
Sets the title of the alternative text associated with the specified shape.void
setVisible
(boolean value) Determines whether the object is visiblevoid
toImage
(OutputStream stream, ImageType imageType) Saves the shape to the specified image stream.void
toImage
(OutputStream stream, ImageType imageType, ImageSaveOptions options) Saves the shape to the specified image stream.void
Saves the shape to the specified image file.void
toImage
(String fileName, ImageSaveOptions options) Saves the shape to the specified image file using options.toJson()
Generates a json string from the shape.ungroup()
Ungroups any grouped shapes in the specified shape or range of shapes.void
zOrder
(ZOrderType zOrderType) Moves the specified shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).从接口继承的方法 com.grapecity.documents.excel.drawing.IContainer
getHeight, getHeightInPixel, getLeft, getLeftInPixel, getTop, getTopInPixel, getWidth, getWidthInPixel, setHeight, setHeightInPixel, setLeft, setLeftInPixel, setTop, setTopInPixel, setWidth, setWidthInPixel
-
方法详细资料
-
ungroup
IShapeRange ungroup()Ungroups any grouped shapes in the specified shape or range of shapes. Disassembles pictures and OLE objects within the specified shape or range of shapes.- 返回:
- A ShapeRange object that represents the ungrouped shapes.
-
getParent
IWorksheet getParent()Gets the shape's parent sheet -
getName
String getName()Returns the name of the object. -
setName
Sets the name of the object. -
getTopLeftCell
IRange getTopLeftCell()Returns theIRange
object that represents the cell that lies underthe upper-left corner of the specified object. -
getBottomRightCell
IRange getBottomRightCell()Returns theIRange
object that represents the cell that lies underthe lower-right corner of the object. -
getTitle
String getTitle()Gets the title of the alternative text associated with the specified shape. -
setTitle
Sets the title of the alternative text associated with the specified shape. -
getRotation
double getRotation()Returns the rotation of the shape in degrees. -
setRotation
void setRotation(double value) Sets the rotation of the shape in degrees. -
getChart
IChart getChart()Returns an object that represents theIChart
contained in this shape. -
getAutoShapeType
AutoShapeType getAutoShapeType()Returns the shape type for the specifiedIShape
object, which mustrepresent an AutoShape other than a line, freeform drawing, or connector. -
setAutoShapeType
Sets the shape type for the specifiedIShape
object, which mustrepresent an AutoShape other than a line, freeform drawing, or connector. -
getConnector
boolean getConnector()Gets whether the specified shape is a connector. -
getConnectorFormat
IConnectorFormat getConnectorFormat()Returns theIConnectorFormat
object that contains connectorformatting properties. Applies toIShape
objects that representconnectors. -
getFill
IFillFormat getFill()Returns theIFillFormat
object that contains fill formattingproperties for the specified chart or shape. -
getHasChart
boolean getHasChart()Returns information if theIShape
contains a chart. -
getLine
ILineFormat getLine()Returns theILineFormat
object that contains line formattingproperties for the specified shape. -
getParentGroup
IShape getParentGroup()Returns theIShape
object that represents the common parent shape ofa child shape or a range of child shapes. -
getGroupItems
IGroupShapes getGroupItems()Returns theIGroupShapes
object that represents the individual shapesin the specified group. Use the indexer ofIGroupShapes
to return asingle shape from the group. -
getPictureFormat
IPictureFormat getPictureFormat()Returns theIPictureFormat
object that contains picture formattingproperties for the specified shape. -
getTextFrame
ITextFrame getTextFrame()Returns theITextFrame
object that contains the text and font styleproperties for the specified shape. -
getPlacement
Placement getPlacement()Returns the way the object is attached to the cells below it. -
setPlacement
Sets the way the object is attached to the cells below it. -
getThreeD
IThreeDFormat getThreeD()Returns theIThreeDFormat
object that contains 3-D – effectformatting properties for the specified shape. -
getType
ShapeType getType()Returns the shape type -
getVisible
boolean getVisible()Determines whether the object is visible -
setVisible
void setVisible(boolean value) Determines whether the object is visible -
getIsPrintable
boolean getIsPrintable()Gets whether the object should be printed -
setIsPrintable
void setIsPrintable(boolean value) Sets whether the object should be printed -
getLocked
boolean getLocked()Gets whether the object is locked (True if the object is locked, False if the object can be modified when the sheet is protected, read or write Boolean). -
setLocked
void setLocked(boolean value) Sets whether the object is locked (True if the object is locked, False if the object can be modified when the sheet is protected, read or write Boolean). -
getZOrderPosition
int getZOrderPosition()Gets the position of the specified shape in the z-order. -
getFormula
String getFormula()Gets the formula of the current shape.- 返回:
- The formula.
-
setFormula
Sets the formula of the current shape.- 参数:
formula
- The formula to set.
-
delete
void delete()Deletes the object. -
duplicate
IShape duplicate()Duplicates the shape and returns a reference to the new copy. -
zOrder
Moves the specified shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).- 参数:
zOrderType
- Required com.grapecity.documents.excel.drawing.ZOrderType. Specifies where to move the specifiedshape relative to the other shapes.
-
getAdjustments
IAdjustments getAdjustments()Gets a collection of adjustment values for the specified AutoShape or connector. -
getHyperlink
IHyperlink getHyperlink()Returns a Hyperlink object that represents the hyperlink for the shape. -
toImage
Saves the shape to the specified image file.- 参数:
fileName
- The output image file.
-
toImage
Saves the shape to the specified image file using options.- 参数:
fileName
- The output image file.options
- The options for output image.
-
toImage
Saves the shape to the specified image stream.- 参数:
stream
- The output image stream.imageType
- Specifies the type of image to create.
-
toImage
Saves the shape to the specified image stream.- 参数:
stream
- The output image stream.imageType
- Specifies the type of image to create.options
- The options for output image.
-
fromJson
Generate a new shape from the json string.- 参数:
json
- the json string represents a shape
-
toJson
String toJson()Generates a json string from the shape.- 返回:
- the json string
-