Previous Document Next Document

Object Model Reference : Classes : P : Properties : Properties : Properties.Count


Properties.Count

Property Count As Long

Description

Member of Properties

The Count property returns the number of data items assigned to an object.

The Count property returns a read-only value.

VBA example

The following VBA example creates an ellipse and assigns the number 2 to its Properties collection. It then displays the number of elements in the collection (1).

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateEllipse(0, 0, 2, 2)
 s.Properties("MyMacroParam", 0) = 2
 MsgBox s.Properties.Count
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.