[]
Represents an object in the drawing layer, such as an AutoShape, chart, or picture. The Shape object is a member of the IShapes collection. The Shapes collection contains all the shapes on a slide.
public interface IShape : IContainer
| Name | Description |
|---|---|
| Adjustments | Gets a collection of adjustment values for the specified AutoShape or connector. |
| AutoShapeType | Returns or sets the shape type for the specified IShape object, which must represent an AutoShape other than a line, freeform drawing, or connector. |
| BottomRightCell | Returns the IRange object that represents the cell that lies under the lower-right corner of the object. |
| Chart | Returns an object that represents the IChart contained in this shape. |
| Connector | Gets whether the specified shape is a connector. |
| ConnectorFormat | Returns the IConnectorFormat object that contains connector formatting properties. Applies to IShape objects that represent connectors. |
| Control | Gets the associated control. |
| Fill | Returns the IFillFormat object that contains fill formatting properties for the specified chart or shape. |
| Formula | Gets or sets the formula of the current shape. |
| GroupItems | Returns the IGroupShapes object that represents the individual shapes in the specified group. Use the indexer of IGroupShapes to return a single shape from the group. |
| HasChart | Returns information if the IShape contains a chart. |
| Hyperlink | Returns a Hyperlink object that represents the hyperlink for the shape. |
| IsPrintable | Determines whether the object should be printed. |
| Line | Returns the ILineFormat object that contains line formatting properties for the specified shape. |
| Locked | Gets or 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). |
| Name | Returns or sets the name of the object. |
| Parent | Gets the shape's parent sheet. |
| ParentGroup | Returns the IShape object that represents the common parent shape of a child shape or a range of child shapes. |
| PictureFormat | Returns the IPictureFormat object that contains picture formatting properties for the specified shape. |
| Placement | Returns or sets the way the object is attached to the cells below it (read or write Placement). |
| Rotation | Returns or sets the rotation of the shape in degrees. |
| TextFrame | Returns the ITextFrame object that contains the text and font style properties for the specified shape. |
| ThreeD | Returns the IThreeDFormat object that contains 3-D – effect formatting properties for the specified shape. |
| Title | Gets or sets the title of the alternative text associated with the specified shape. |
| TopLeftCell | Returns the IRange object that represents the cell that lies under the upper-left corner of the specified object. |
| Type | Returns the shape type. |
| Visible | Determines whether the object is visible. |
| ZOrderPosition | Returns the position of the specified shape in the z-order. |
| Name | Description |
|---|---|
| Delete() | Deletes the object. |
| Duplicate() | Duplicates the shape and returns a reference to the new copy. |
| FromJson(string) | Generate a new shape from the json string. |
| ToImage(Stream, ImageType) | Saves the shape to the specified image stream. |
| ToImage(Stream, ImageType, ImageSaveOptions) | Saves the shape to the specified image stream using options. |
| ToImage(string) | Saves the shape to the specified image file. |
| ToImage(string, ImageSaveOptions) | 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. Disassembles pictures and OLE objects within the specified shape or range of shapes. |
| ZOrder(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). |