Previous Document Next Document

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


Properties.Index

Property Index(Name As String, ID As Long) As Long

Description

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.

Parameter
Description
Name
Specifies the data item by its name
ID
Specifies the data item by its ID

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.