편집

다음을 통해 공유


CanvasShapes Interface

Definition

Represents the shapes in a drawing canvas.

public interface class CanvasShapes : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("396F9073-F9FD-11D3-8EA0-0050049A1A01")]
public interface CanvasShapes : System.Collections.IEnumerable
type CanvasShapes = interface
    interface IEnumerable
Public Interface CanvasShapes
Implements IEnumerable
Attributes
Implements

Remarks

Use the CanvasItems property of either a Shape or ShapeRange object to return a CanvasShapes collection. To add shapes to a drawing canvas, use the following methods of the CanvasShapes collection: AddCallout(MsoCalloutType, Single, Single, Single, Single), AddConnector(MsoConnectorType, Single, Single, Single, Single), AddCurve(Object), AddLabel(MsoTextOrientation, Single, Single, Single, Single), AddLine(Single, Single, Single, Single), AddPicture(String, Object, Object, Object, Object, Object, Object), AddPolyline(Object), AddShape(Int32, Single, Single, Single, Single), AddTextbox(MsoTextOrientation, Single, Single, Single, Single), AddTextEffect(MsoPresetTextEffect, String, String, Single, MsoTriState, MsoTriState, Single, Single), or BuildFreeform(MsoEditingType, Single, Single).

Use CanvasItems (index), where index is the name or the index number, to return a single shape in the CanvasShapes collection.

Each shape is assigned a default name when it is created. For example, if you add three different shapes to a document, they might be named Rectangle 2, TextBox 3, and Oval 4. Use the Name property to reference the default name or to assign a more meaningful name to a shape.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a value that indicates the application in which the specified object was created.

Item[Object]

Returns an individual object in a collection.

Parent

Returns the parent object of the specified object.

Methods

AddCallout(MsoCalloutType, Single, Single, Single, Single)

Adds a borderless line callout to a drawing canvas.

AddConnector(MsoConnectorType, Single, Single, Single, Single)

Adds a connecting line between two shapes in a drawing canvas.

AddCurve(Object)

Adds a Bézier curve in a drawing canvas.

AddLabel(MsoTextOrientation, Single, Single, Single, Single)

Adds a text label to a drawing canvas.

AddLine(Single, Single, Single, Single)

Adds a line to a drawing canvas.

AddPicture(String, Object, Object, Object, Object, Object, Object)

Adds a picture to a drawing canvas.

AddPolyline(Object)

Adds an open or closed polygon to a drawing canvas.

AddShape(Int32, Single, Single, Single, Single)

Adds an AutoShape to a drawing canvas.

AddTextbox(MsoTextOrientation, Single, Single, Single, Single)

Adds a text box to a drawing canvas.

AddTextEffect(MsoPresetTextEffect, String, String, Single, MsoTriState, MsoTriState, Single, Single)

Adds a WordArt shape to a drawing canvas.

BuildFreeform(MsoEditingType, Single, Single)

Builds a freeform object.

GetEnumerator()
Range(Object)

Specifies the shapes to be included in a specific range.

SelectAll()

Selects all the shapes in the main story, in a canvas, or in headers and footers of a document.

Applies to