<Type> element

<Type> element

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Specifies various types, based on the element in which it is contained.

In a Connection element, Type specifies the connection point type.

Value

Description

0

Inward.

1

Outward.

2

Inward and outward.

In a Field element, Type specifies a data type for the text field value.

Value

Description

0

String.

2

Number. Includes date, time, duration, and currency values as well as scalars, dimensions, and angles.

5

Date or time value. Displays days, months, and years, or seconds, minutes, and hours, or a combined date and time value.

6

Duration value. Displays elapsed time.

7

Currency value. Uses the system's current regional settings.

In a Prop, Type specifies a data type for the custom property value.

Value

Description

0

String. This is the default.

1

Fixed list. Displays the list items in a drop-down combo box in the Custom Properties dialog box in Microsoft Visio.

2

Number. Includes date, time, duration, and currency values as well as scalars, dimensions, and angles.

3

Boolean. Displays FALSE and TRUE as items users can select from a drop-down list box in the Custom Properties dialog box in the Visio application.

4

Variable list. Displays the list items in a drop-down combo box in the Custom Properties dialog box in Visio. Users can select a list item or enter a new item that is added to the current list in the Format element.

5

Date or time value. Displays days, months, and years, or seconds, minutes, and hours, or a combined date and time value.

6

Duration value. Displays elapsed time.

7

Currency value. Uses the system's current Regional Settings.

Syntax

  <Type
      [Unit = "unitval"]
      [F = "formula"]
      [Err = "error"]>
  </Type>

Attributes

Unit

Optional string. Represents a unit of measure. The default is NUM. For details about NUM, see Units of measure.

F

Optional string. Represents the element's formula. This attribute can contain the string "someFormula" if the formula exists locally, "No Formula" if the formula is locally deleted or blocked, or "Inh" if the formula is inherited.

If the attribute is not present, the element's formula is a simple constant, for example, <element> 5 </element>.

Err

Optional string. Indicates that the formula evaluates to an error. The value of Err is the current value (an error message string); the value of the element is the last valid value.

Element information

Parent elements:

Connection, Field, Prop

Child elements:

None

Remarks

The Type element is relevant only when contained in a Shape element. It is ignored when contained in a DocumentSheet, PageSheet, or StyleSheet element.

See also

Type cell (Custom Properties section)

Type cell (Text Field section)

Type / C cell (Connection Points section)