Shape Members (Excel)
Represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture.
Methods
Name |
Description |
---|---|
Applies to the specified shape formatting that has been copied by using the PickUp method. |
|
Copies the object to the Clipboard. |
|
Copies the selected object to the Clipboard as a picture. |
|
Cuts the object to the Clipboard. |
|
Deletes the object. |
|
Duplicates the object and returns a reference to the new copy. |
|
Flips the specified shape around its horizontal or vertical axis. |
|
Moves the specified shape horizontally by the specified number of points. |
|
Changes the rotation of the specified shape around the z-axis by the specified number of degrees. Use the Rotation property to set the absolute rotation of the shape. |
|
Moves the specified shape vertically by the specified number of points. |
|
Copies the formatting of the specified shape. Use the Apply method to apply the copied formatting to another shape. |
|
This method reroutes all connectors attached to the specified shape; if the specified shape is a connector, it is rerouted. |
|
Scales the height of the shape by a specified factor. For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original or the current size. Shapes other than pictures and OLE objects are always scaled relative to their current height. |
|
Scales the width of the shape by a specified factor. For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original or the current size. Shapes other than pictures and OLE objects are always scaled relative to their current width. |
|
Selects the object. |
|
Makes the formatting of the specified shape the default formatting for the shape. |
|
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. |
|
Moves the specified shape in front of or behind other shapes in the collection (that is, changes the position of the shape in the z-order). |
Properties
Name |
Description |
---|---|
Returns an Adjustments object that contains adjustment values for all the adjustments in the specified shape. Applies to any Shape object that represents an AutoShape, WordArt, or a connector. |
|
Returns or sets the descriptive (alternative) text string for a Shape object when the object is saved to a Web page. Read/write String. |
|
When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only. |
|
Returns or sets the shape type for the specified Shape or ShapeRange object, which must represent an AutoShape other than a line, freeform drawing, or connector. Read/write MsoAutoShapeType. |
|
Returns or sets the background style. Read/write MsoBackgroundStyleIndex. |
|
Returns or sets a value that indicates how the specified shape appears when the presentation is viewed in black-and-white mode. Read/write MsoBlackWhiteMode. |
|
Returns a Range object that represents the cell that lies under the lower-right corner of the object. Read-only. |
|
Returns a CalloutFormat object that contains callout formatting properties for the specified shape. Applies to a Shape object that represent line callouts. Read-only. |
|
Returns a Chart object that represents the chart contained in the shape. Read-only. |
|
Returns msoTrue if the specified shape is a child shape or if all shapes in a shape range are child shapes of the same parent. Read-only MsoTriState. |
|
Returns the number of connection sites on the specified shape. Read-only Long. |
|
True if the specified shape is a connector. Read-only MsoTriState. |
|
Returns a ConnectorFormat object that contains connector formatting properties. Applies to a Shape that represents connectors. Read-only. |
|
Returns a ControlFormat object that contains Microsoft Excel control properties. Read-only. |
|
Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long. |
|
Returns a FillFormat object for a specified shape or a ChartFillFormat object for a specified chart that contains fill formatting properties for the shape or chart. Read-only. |
|
Returns the Microsoft Excel control type. Read-only XlFormControl. |
|
Returns a GlowFormat object for a specified shape that contains glow formatting properties for the shape. Read-only. |
|
Returns a GroupShapes object that represents the individual shapes in the specified group. Use the Item method of the GroupShapes object to return a single shape from the group. Applies to Shape objects that represent grouped shapes. Read-only. |
|
Returns whether a shape contains a chart. Read-only MsoTriState. |
|
Returns whether there is a SmartArt diagram present on the specified shape. Read-only |
|
Returns or sets a Single value that represents the height, in points, of the object. |
|
True if the specified shape is flipped around the horizontal axis. Read-only MsoTriState. |
|
Returns a Hyperlink object that represents the hyperlink for the shape. |
|
Returns a Long value that represents the type for the specified object. |
|
Returns or sets a Single value that represents the distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart). |
|
Returns a LineFormat object that contains line formatting properties for the specified shape. (For a line, the LineFormat object represents the line itself; for a shape with a border, the LineFormat object represents the border). Read-only. |
|
Returns a LinkFormat object that contains linked OLE object properties. Read-only. |
|
True if the specified shape retains its original proportions when you resize it. False if you can change the height and width of the shape independently of one another when you resize it. Read/write MsoTriState. |
|
Returns or sets a Boolean value that indicates if the object is locked. |
|
Returns or sets a String value representing the name of the object. |
|
Returns a ShapeNodes collection that represents the geometric description of the specified shape. |
|
Returns an OLEFormat object that contains OLE object properties. Read-only. |
|
Returns or sets the name of a macro that is run when the specified object is clicked. Read/write String. |
|
Returns the parent object for the specified object. Read-only. |
|
Returns a Shape object that represents the common parent shape of a child shape or a range of child shapes. |
|
Returns a PictureFormat object that contains picture formatting properties for the specified shape. Applies to a Shape object that represent pictures or OLE objects. Read-only. |
|
Returns or sets an XlPlacement value that represents the way the object is attached to the cells below it. |
|
Returns a ReflectionFormat object for a specified shape that contains reflection formatting properties for the shape. Read-only. |
|
Returns or sets the rotation of the shape, in degrees. Read/write Single. |
|
Returns a read-only ShadowFormat object that contains shadow formatting properties for the specified shape or shapes. |
|
Returns or sets an MsoShapeStyleIndex that represents the shape style of shape range. Read/write. |
|
Returns an object that represents the SmartArt associated with the shape. Read-only |
|
Returns a SoftEdgeFormat object for a specified shape that contains soft edge formatting properties for the shape. Read-only. |
|
Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. Read-only. |
|
Returns a TextFrame object that contains the alignment and anchoring properties for the specified shape. Read-only. |
|
Returns a TextFrame2 object that contains text formatting for the specified shape. Read-only. |
|
Returns a ThreeDFormat object that contains 3-D effect formatting properties for the specified shape. Read-only. |
|
Returns or sets the title of the alternative text associated with the specified shape. Read/write |
|
Returns or sets a Single value that represents the distance, in points, from the top edge of the topmost shape in the shape range to the top edge of the worksheet. |
|
Returns a Range object that represents the cell that lies under the upper-left corner of the specified object. Read-only. |
|
Returns or sets a MsoShapeType value that represents the shape type. |
|
True if the specified shape is flipped around the vertical axis. Read-only MsoTriState. |
|
Returns the coordinates of the specified freeform drawing vertices (and control points for Bezier curves) as a series of coordinate pairs. You can use the array returned by this property as an argument to the AddCurve method or AddPolyLine method. Read-only Variant. |
|
Returns or sets an MsoTriState value that determines whether the object is visible. Read/write. |
|
Returns or sets a Single value that represents the width, in points, of the object. |
|
Returns the position of the specified shape in the z-order. Read-only Long. Read-only |