Object Model Reference : Classes : P : Properties : Properties : Properties.Index |
Property Index(Name As String, ID As Long) As Long
Member of Properties
The Index property returns the index number of a data item with the specified item name and ID.
The Index property returns a read-only value.
The following VBA example creates an ellipse and assigns two data items to it. The index value of 2 is then displayed, representing the property specified by (Name="Height", ID=0).
Sub Test() |
Dim s As Shape |
Set s = ActiveLayer.CreateEllipse(0, 0, 2, 2) |
s.Properties("Width", 0) = s.SizeWidth |
s.Properties("Height", 0) = s.SizeHeight |
MsgBox s.Properties.Index("Height", 0) |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.