ShapeNodes.SetEditingType method (Publisher)
Sets the editing type of the specified node. If the node is a control point for a curved segment, this method sets the editing type of the node adjacent to it that joins two segments. Depending on the editing type, this method may affect the position of adjacent nodes.
Syntax
expression.SetEditingType (Index, EditingType)
expression A variable that represents a ShapeNodes object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Required | Long | The node whose editing type is to be set. Must be a number from 1 to the number of nodes in the specified shape; otherwise, an error occurs. |
EditingType | Required | MsoEditingType | The editing property of the node. Can be one of the MsoEditingType constants declared in the Microsoft Office type library. |
Example
This example changes all corner nodes to smooth nodes in the third shape of the active publication. The shape must be a freeform drawing.
Dim intNode As Integer
With ActiveDocument.Pages(1).Shapes(3).Nodes
For intNode = 1 to .Count
If .Item(intNode).EditingType = msoEditingCorner Then
.SetEditingType _
Index:=intNode, EditingType:=msoEditingSmooth
End If
Next intNode
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.