Skip to content
本页内容

Nodes (属性)

返回一个 ShapeNodes 集合,它代表指定形状的几何描述。

说明

此属性适用于代表任意多边形的 ShapeShapeRange 对象。

示例

python
#本示例在活动工作表中第三个形状的第四个结点后添加一个带有一段曲线的平滑结点。第三个形状必须为至少带有四个顶点的任意多边形
def test():
    nodes = ActiveSheet.Shapes.Item(3).Nodes
    nodes.Insert(4, msoSegmentCurve, msoEditingSmooth, 210, 100)
python
#本示例显示第一张工作表中第一个形状的节点数量
def test():
    shapes = Application.Worksheets.Item(1).Shapes
    print(shapes.Item(1).Nodes.Count)