Syntax

expression.SegmentType

expression A variable that represents a ShapeNode object.

Remarks

MsoSegmentType can be one of these MsoSegmentType constants.
msoSegmentCurve
msoSegmentLine

Use the method to set the value of this property.

Example

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

Visual Basic for Applications
Set myDocument = Worksheets(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 Wend End With
Is node segment curved? Return a value that indicates whether the segment associated with node is straight or curved? segment segment type Segment Type Property SegmentType segmenttype property

See also: