ShapeNode 对象

         
Shapes (Shape)
ShapeNodes (ShapeNode)

代表用户定义任意多边形的结点的几何外形和几何编辑属性。结点包括任意多边形的线段之间的顶点和曲线段的控制点。ShapeNode 对象是 ShapeNodes 集合的成员。ShapeNodes 集合包含任意多边形的所有结点。

使用 ShapeNode 对象

使用 Nodesindex),返回一单一 ShapeNode 对象,此处 index 是结点索引号。如果在 myDocument 上第三个形状中的第一个结点是一个角的顶点,则以下示例使其成为平滑顶点。要使此示例运行,形状三必须是任意多边形。

Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(3)
    If .Nodes(1).EditingType = msoEditingCorner Then
        .Nodes.SetEditingType 1, msoEditingSmooth
    End If
End With