
## DataColumn class

Defines how a data column appears in the External Data window in the Visio user interface and qualifies the data in the column by defining its data type and formatting.

## Constructors

| Name | Description |
| --- | --- |
| [DataColumn](#constructor) | Constructor. |

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [ColumnNameID](#columnnameid) | String | External name of the data column. Appears in the headings in the External Data window and in labels in data graphics. |
| [Name](#name) | String | Internal name of the data column. Used as the row name for the shape-data item (custom property) added to a shape when t |
| [Label](#label) | String | Label of the data column. |
| [OrigLabel](#origlabel) | String | Column label returned to Visio by the underlying ADO interface. |
| [LangID](#langid) | long | The language ID of the data column |
| [Calendar](#calendar) | int | Calendar ID of the data column. |
| [DataType](#datatype) | int | Type of the data in the data column. |
| [UnitType](#unittype) | String | Unit type of the data in the data column. |
| [Currency](#currency) | int | Currency ID of the data column. |
| [Degree](#degree) | long | Specifies the degree (power) of the units, for example squared, or cubed. The default (attribute absent) is 1. |
| [DisplayWidth](#displaywidth) | long | Width of the data column in the External Data window. |
| [DisplayOrder](#displayorder) | long | Defines the display position of the data column in the External Data window, from the left-most column (0) to the right- |
| [Mapped](#mapped) | int | Specifies whether the column is visible in the External Data window. True (1) for the column to be visible; false (0) fo |
| [Hyperlink](#hyperlink) | int | Whether the data column creates a hyperlink in a shape when the shape is linked to data. The value of the property is BO |

### DataColumn() {#constructor}

Constructor.

### DataColumn.ColumnNameID property {#columnnameid}

External name of the data column. Appears in the headings in the External Data window and in labels in data graphics.

**Type:** String

### DataColumn.Name property {#name}

Internal name of the data column. Used as the row name for the shape-data item (custom property) added to a shape when the shape is linked to a data row.

**Type:** String

### DataColumn.Label property {#label}

Label of the data column.

**Type:** String

### DataColumn.OrigLabel property {#origlabel}

Column label returned to Visio by the underlying ADO interface.

**Type:** String

### DataColumn.LangID property {#langid}

The language ID of the data column

**Type:** long

### DataColumn.Calendar property {#calendar}

Calendar ID of the data column.

**Type:** int

### DataColumn.DataType property {#datatype}

Type of the data in the data column.

**Type:** int

### DataColumn.UnitType property {#unittype}

Unit type of the data in the data column.

**Type:** String

### DataColumn.Currency property {#currency}

Currency ID of the data column.

**Type:** int

### DataColumn.Degree property {#degree}

Specifies the degree (power) of the units, for example squared, or cubed. The default (attribute absent) is 1.

**Type:** long

### DataColumn.DisplayWidth property {#displaywidth}

Width of the data column in the External Data window.

**Type:** long

### DataColumn.DisplayOrder property {#displayorder}

Defines the display position of the data column in the External Data window, from the left-most column (0) to the right-most column (largest value).

**Type:** long

### DataColumn.Mapped property {#mapped}

Specifies whether the column is visible in the External Data window. True (1) for the column to be visible; false (0) for the column not to be visible. The default (attribute absent) is for the column to be visible. The value of the property is BOOL integer constant.

**Type:** int

### DataColumn.Hyperlink property {#hyperlink}

Whether the data column creates a hyperlink in a shape when the shape is linked to data. The value of the property is BOOL integer constant.

**Type:** int
