ShapeNode 对象

         
Shapes (Shape)
ShapeNodes (ShapeNode)

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

ShapeNode 对象的的用法

可用 Nodes(index) 返回单个 ShapeNode 对象,其中 index 为节点编号。如果 myDocument 上图形三的节点一位于尖角上,下例将使该尖角变得光滑。为使本示例正常运行,图形三必须是任意多边形。

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