Previous Document Next Document

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


Shapes.Count

Property Count As Long

Description

Member of Shapes

The Count property returns the number of shapes in a Shapes collection.

The Count property returns a read-only value.

VBA example

The following VBA example displays the number of shapes in the Shapes collection.

Sub ShapesCount()
 With ActiveLayer.Shapes
  MsgBox "There are " & .Count & " shapes in the Shapes collection."
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.