Previous Document Next Document
DataField.DocDefault

Property DocDefault As Boolean

Member of DataField

The DocDefault property returns or sets a value that indicates whether or not a data field is specified for a single particular shape, or whether it is common for all objects in the document.

If the data field is not a default data field in the document, the Object Data Manager docker does not display this field unless it contains some data for the selected shape.

The following code example sets the Comments data field not to be a default data field for the active document; therefore, it is not visible in Object Data Manager docker.

Sub Test() 
 ActiveDocument.DataFields("Comments").DocDefault = False 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.