Previous Document Next Document
Properties.Index

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

Member of Properties

The Index property returns the index of data item with the specified item name and ID.

The Index property returns a read-only value.

Parameters
Description
Name
Represents a string value that uniquely identifies a property
ID
Represents a unique identifier of a property within CorelDRAW

The following code 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 2007 Corel Corporation. All rights reserved.