Previous Document Next Document

Object Model Reference : Classes : D : DataItems : Properties : DataItems.Item


DataItems.Item

Property Item(IndexOrName As Variant) As DataItem

Description

Member of DataItems

The Item property returns the data item (or DataItem object) representing a data field associated with the given shape. It is the default property of the DataItems class.

The Item property returns a read-only value.

Parameter
Description
IndexOrName
Specifies the data item by its index number or name:
 
Index — Specifies the preset placeholder that uniquely identifies each member of the DataItems collection
 
Name — Specifies the string that uniquely identifies each data item

VBA example

The following VBA example displays the name of a data field for an object data item.

Sub FieldName()
 With ActiveShape.ObjectData.Item(1)
  MsgBox .DataField.Name
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.