Previous Document Next Document

Object Model Reference : Classes : S : Segments : Properties : Segments.Count


Segments.Count

Property Count As Long

Description

Member of Segments

The Count property returns the number of segments in a Segments collection.

The Count property returns a read-only value.

VBA example

The following VBA example displays the number of nodes, segments, and subpaths in the active curve.

Sub Test()
 Dim crv As Curve
 Set crv = ActiveShape.Curve
 MsgBox "The curve contains:" & vbCr & _
  "Nodes: " & crv.Nodes.Count & vbCr & _
  "Segments: " & crv.Segments.Count & vbCr & _
  "Subpaths: " & crv.Subpaths.Count
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.