DataColumns Collection

Visio Automation Reference

The collection of DataColumn objects associated with a DataRecordset object.

ms409165.vs_note(en-us,office.12).gif  Note
This Visio object or member is available only to licensed users of Microsoft Office Visio Professional 2007.

Version Information
 Version Added:  Visio 2007

Remarks

The default property of the DataColumns collection is Item.

A DataRecordset object can contain only one DataColumns collection. The number of DataColumn objects that can belong to a DataColumns collection is limited only by the number of columns in the data source and the hardware constraints of your computer.

You can use the SetColumnProperties method to set multiple properties of the data recordset columns you specify to the values you specify. Note that SetColumnProperties can set values of multiple properties for multiple columns, whereas the DataColumn.SetProperty method sets the value of only one property of one column at a time.

See Also