編輯

共用方式為


ShapeNodes Interface

Definition

A collection of all the ShapeNode objects in the specified freeform.

public interface class ShapeNodes : Microsoft::Office::Core::_IMsoDispObj, System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000C0319-0000-0000-C000-000000000046")]
public interface ShapeNodes : Microsoft.Office.Core._IMsoDispObj, System.Collections.IEnumerable
Public Interface ShapeNodes
Implements _IMsoDispObj, IEnumerable
Attributes
Implements

Remarks

Each ShapeNode object represents either a node between segments in a freeform or a control point for a curved segment of a freeform. You can create a freeform manually or by using the BuildFreeform(MsoEditingType, Single, Single) and ConvertToShape() methods.

Use the Nodes property to return the ShapeNodes collection.

Use the Insert(Int32, MsoSegmentType, MsoEditingType, Single, Single, Single, Single, Single, Single) method to create a new node and add it to the ShapeNodes collection.

Use Nodes(index), where index is the node index number, to return a single ShapeNode object.

Properties

Application

Returns an Application object that represents the Microsoft Excel application. Read-only.

Count

Returns the number of objects in the collection. Read-only Integer.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only Integer.

Parent

Returns the parent object for the specified object. Read-only.

Methods

Delete(Int32)

Deletes the object.

GetEnumerator()
Insert(Int32, MsoSegmentType, MsoEditingType, Single, Single, Single, Single, Single, Single)

Inserts a node into a freeform shape.

Item(Object)

Returns a single object from a collection.

SetEditingType(Int32, MsoEditingType)

Sets the editing type of the specified node.

SetPosition(Int32, Single, Single)

Sets the location of the specified node.

SetSegmentType(Int32, MsoSegmentType)

Sets the segment type of the segment that follows the specified node.

Applies to