Shape Members (Word)
Represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, ActiveX control, or picture. The Shape object is a member of the Shapes collection, which includes all the shapes in the main story of a document or in all the headers and footers of a document.
Methods
Name |
Description |
---|---|
Applies to the specified shape formatting that has been copied using the PickUp method. |
|
Crops a percentage of the height of a drawing canvas from the bottom of the canvas. |
|
Crops a percentage of the width of a drawing canvas from the left side of the canvas. |
|
Crops a percentage of the width of a drawing canvas from the right side of the canvas. |
|
Crops a percentage of the height of a drawing canvas from the top of the canvas. |
|
Converts the specified shape in the drawing layer of a document to an inline shape in the text layer. You can convert only shapes that represent pictures, OLE objects, or ActiveX controls. This method returns an InlineShape object that represents the picture or OLE object. |
|
Deletes the specified shape node. |
|
Creates a duplicate of the specified Shape object, adds the new shape to the Shapes collection at a standard offset from the original shapes, and then returns the new Shape object. |
|
Flips a shape horizontally or vertically. |
|
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. |
|
Moves the specified shape vertically by the specified number of points. |
|
Copies the formatting of the specified shape. |
|
Scales the height of the shape by a specified factor. |
|
Scales the width of the shape by a specified factor. |
|
Selects the specified shape. |
|
Applies the formatting of the default shape for a document to the specified shape. |
|
Ungroups any grouped shapes in the specified shape. |
|
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). |
Properties
Name |
Description |
---|---|
Returns an Adjustments object that contains adjustment values for all the adjustments in the specified Shape object that represents an AutoShape or WordArt. Read-only. |
|
Returns or sets the alternative text associated with a shape in a Web page. Read/write String. |
|
Returns a Range object that represents the anchoring range for the specified shape or shape range. Read-only. |
|
Returns an Application object that represents the Microsoft Word application. |
|
Returns or sets the shape type for the specified Shape object, which must represent an AutoShape other than a line or freeform drawing. Read/write MsoAutoShapeType. |
|
Sets or returns the background style of the specified shape. Read/write MsoBackgroundStyleIndex. |
|
Returns a CalloutFormat object that contains callout formatting properties for the specified shape. Read-only. |
|
Returns a CanvasShapes object that represents a collection of shapes in a drawing canvas. |
|
Returns a Chart object that represents a chart within the collection of shapes in a document. Read-only. |
|
True if the shape is a child shape or if all shapes in a shape range are child shapes of the same parent. Read-only MsoTriState. |
|
Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long. |
|
Returns a FillFormat object that contains fill formatting properties for the specified shape. Read-only. |
|
Returns a GlowFormat object that represents the glow formatting for a shape. Read-only. |
|
Returns a GroupShapes object that represents the individual shapes in the specified group. Read-only. |
|
True if the specified shape has a chart. Read-only. |
|
Returns True if there is a SmartArt diagram present on the shape. Read-only. |
|
Returns or sets the height of the specified shape. Read/write Single. |
|
Returns or sets a Single that represents the percentage of the relative height of a shape. Read/write. |
|
Indicates that a shape has been flipped horizontally. Read-only MsoTriState. |
|
Returns a Hyperlink object that represents the hyperlink associated with a Shape object. Read-only. |
|
Returns the identification type for the specified shape. Read-only Long. |
|
Returns a Long that represents whether a shape in a table is displayed inside or outside the table. |
|
Returns or sets a Single that represents the horizontal position, measured in points, of the specified shape or shape range. Can also be any valid WdShapePosition constant. Read/write. |
|
Returns or sets a Single that represents the relative left position of a shape. Read/write. |
|
Returns a LineFormat object that contains line formatting properties for the specified shape. Read-only. |
|
Returns a LinkFormat object that represents the link options of a shape that is linked to a file. Read/only. |
|
True if the anchor of a Shape object is locked to the anchoring range. Read/write Long. |
|
MsoTrue if the specified shape retains its original proportions when you resize it. MsoFalse 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 the name of the specified object. Read/write String. |
|
Returns a ShapeNodes collection that represents the geometric description of the specified shape. |
|
Returns an OLEFormat object that represents the OLE characteristics (other than linking) for the specified shape, inline shape, or field. Read-only. |
|
Returns an Object that represents the parent object of the specified Shape object. |
|
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 object. Read-only. |
|
Returns a ReflectionFormat object that represents the reflection formatting for a shape. Read-only. |
|
Specifies to the relative horizontal position of a shape. Read/write WdRelativeHorizontalPosition. |
|
Returns or sets a WdRelativeVerticalSize constant that represents the object to which a range of shapes is relative. Read/write. |
|
Specifies the relative vertical position of a shape. Read/write WdRelativeVerticalPosition. |
|
Returns or sets a WdRelativeVerticalSize constant that represents the relative vertical size of a shape. Read/write. |
|
Returns or sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read/write Single. |
|
Returns a Script object, which represents a block of script or code for an image on a Web page. |
|
Returns a ShadowFormat object that represents the shadow formatting for the specified shape. |
|
Returns or sets the shape style for the specified shape. Read/write MsoShapeStyleIndex. |
|
Returns a SmartArt object that provides a way to work with the SmartArt associated with the specified shape. Read-only. |
|
Returns a SoftEdgeFormat object that represents the soft edge formatting for a 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 text for the specified shape. |
|
Returns a TextFrame2 object that contains the text for the specified shape. Read-only. |
|
Returns a ThreeDFormat object that contains 3-D formatting properties for the specified shape. Read-only. |
|
Returns or sets a String that contains a title for the specified shape. Read/write. |
|
Returns or sets the vertical position of the specified shape or shape range in points. Read/write Single. |
|
Returns or sets a Single that represents the relative top position of a shape. Read/write. |
|
Returns the type of inline shape. Read-only MsoShapeType. |
|
True if the specified shape is flipped around the vertical axis. Read-only MsoTriState. |
|
Returns the coordinates of the specified freeform drawing's vertices (and control points for Bézier curves) as a series of coordinate pairs. Read-only Variant. |
|
True if the specified object, or the formatting applied to it, is visible. Read/write MsoTriState. |
|
Returns or sets the width, in points, of the specified shape. Read/write Long. |
|
Returns or sets a Single that represents the relative width of a shape. Read/write. |
|
Returns a WrapFormat object that contains the properties for wrapping text around the specified shape. Read-only. |
|
Returns a Long that represents the position of the specified shape in the z-order. Read-only. |