Share via


DataRecordset.DataColumns Property

Visio Automation Reference

Returns the DataColumns collection associated with the DataRecordset object. Read-only.

ms195825.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

Syntax

expression.DataColumns

expression   An expression that returns a DataRecordset object.

Return Value
DataColumns

Remarks

Every DataRecordset object contains a DataColumns collection of all the DataColumn objects associated with the DataRecordset object. These objects allow you to map data columns to cells in the Shape Data (formerly Custom Properties) section of the Visio ShapeSheet spreadsheet.

Once you get the DataColumns collection, you can use its SetColumnProperties method to set the properties of multiple data columns, or you can get and set the properties of individual data columns by using the DataColumn.GetProperty and DataColumn.SetProperty properties respectively.

See Also