次の方法で共有


Shapes Members (Word)

A collection of Shape objects that represent all the shapes in a document or all the shapes in all the headers and footers in a document. Each Shape object represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture.

Methods

Name

Description

AddCallout

Adds a borderless line callout to a drawing canvas. .

AddCanvas

Adds a drawing canvas to a document. Returns a Shape object that represents the drawing canvas and adds it to the Shapes collection.

AddChart

Inserts a chart, of the specified type, as a shape into the active document, and opens Microsoft Office Excel with a sheet that contains the default data that Microsoft Word uses to create the chart.

AddCurve

Returns a Shape object that represents a Bézier curve in a drawing canvas.

AddLabel

Adds a text label to a drawing canvas.

AddLine

Adds a line to a drawing canvas.

AddOLEControl

Creates an ActiveX control (formerly known as an OLE control). Returns the InlineShape object that represents the new ActiveX control.

AddOLEObject

Creates an OLE object. Returns the InlineShape object that represents the new OLE object.

AddPicture

Adds a picture to a drawing canvas. Returns a Shape object that represents the picture and adds it to the CanvasShapes collection.

AddPolyline

Adds an open or closed polygon to a drawing canvas. Returns a Shape object that represents the polygon and adds it to the CanvasShapes collection.

AddShape

Adds an AutoShape to a document. Returns a Shape object that represents the AutoShape and adds it to the Shapes collection.

AddSmartArt

Inserts the specified SmartArt graphic into the active document.

AddTextbox

Adds a text box to a drawing canvas.

AddTextEffect

Adds a WordArt shape to a drawing canvas. Returns a Shape object that represents the WordArt and adds it to the CanvasShapes collection.

BuildFreeform

Builds a freeform object.

Item

Returns an individual Shape object in a collection.

Range

Returns a ShapeRange object that represents the shapes within a range.

SelectAll

Selects all the shapes in a collection of shapes.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Count

Returns a Long that represents the number of shapes in the collection. Read-only.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Parent

Returns an Object that represents the parent object of the specified Shapes object.