Table of contents
Collapse the table of content
Expand the table of content

ShapeNode.SegmentType Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns a value that indicates whether the segment associated with the specified node is straight or curved. Read-only.


expression. SegmentType

expression A variable that represents a ShapeNode object.

Return Value



This property is read-only. Use the SetSegmentType method to set the value of this property.

The value returned by the SegmentType property can be one of these MsoSegmentType constants. The SegmentType property returns msoSegmentCurve if the specified node is a control point for a curved segment.

|| |:-----| |msoSegmentCurve| |msoSegmentLine|


This example changes all straight segments to curved segments in shape three on myDocument. Shape three must be a freeform drawing.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(3).Nodes

    n = 1

    While n <= .Count

        If .Item(n).SegmentType = msoSegmentLine Then

            .SetSegmentType n, msoSegmentCurve

        End If

        n = n + 1


End With

See also


ShapeNode Object

© 2018 Microsoft