Previous Document Next Document

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


DataField.FieldWidth

Property FieldWidth As Long

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.