Previous Document Next Document

Object Model Reference : Classes : D : DataItem : Properties : DataItem.DataField


DataItem.DataField

Property DataField As DataField

Description

Member of DataItem

The DataField property returns the corresponding data field (or DataField object) to which the given data item (or DataItem object) belongs.

The DataField property returns a read-only value.

VBA example

The following VBA example shows a list of all object-data items assigned to the selected shape. Each text line in the message box lists the field name and its value as they appear in Object Data Manager docker.

Sub Test()
 Dim di As DataItem
 Dim s As String
 s = "Field = Value" & vbCr
 For Each di In ActiveShape.ObjectData
  s = s & vbCr & di.DataField.Name & " = " & di.FormattedValue
 Next di
 MsgBox s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.