Object Model Reference : Classes : D : DataField : Properties : DataField.FieldWidth |
Property FieldWidth As Long
Member of DataField
The FieldWidth property returns or specifies the width of a data field as seen in the Spreadsheet editor of the Object Data Manager docker.
The following VBA example calculates and displays the total width of all data fields.
Sub Test() |
Dim df As DataField |
Dim w As Long |
w = 0 |
For Each df In ActiveDocument.DataFields |
w = w + df.FieldWidth |
Next df |
MsgBox "Total width of all " & ActiveDocument.DataFields.Count & " data fields is " & w & " units" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.