Previous Document Next Document
Segment.Length

Property Length As Double

Member of Segment

The Length property returns the length of a segment. Length is measured in document units.

The Length property returns a read-only value.

The following code example displays the length of the first segment of selected curve:

Sub Test() 
 MsgBox ActiveShape.Curve.Segments(1).Length 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.