[Table of Contents] [docx version]

Shared MLs Reference Material - Math

vector (Vector)

This element defines the vector variant type. Vector contents must be of uniform type as specified by the baseType attribute. The contents of a vector are defined using repeated child elements of the appropriate variant type.

[Example: A vector of lpstr variant types:

<vt:vector baseType="lpstr">

end example]

Parent Elements

HeadingPairs7.2.2.8); HLinks7.2.2.10); property7.3.2.2); TitlesOfParts7.2.2.26); variant7.4.2.33)


Child Elements


bool (Boolean)


bstr (Basic String)


cf (Clipboard Data)


clsid (Class ID)


cy (Currency)


date (Date and Time)


error (Error Status Code)


filetime (File Time)


i1 (1-Byte Signed Integer)


i2 (2-Byte Signed Integer)


i4 (4-Byte Signed Integer)


i8 (8-Byte Signed Integer)


lpstr (LPSTR)


lpwstr (LPWSTR)


r4 (4-Byte Real Number)


r8 (8-Byte Real Number)


ui1 (1-Byte Unsigned Integer)


ui2 (2-Byte Unsigned Integer)


ui4 (4-Byte Unsigned Integer)


ui8 (8-Byte Unsigned Integer)


variant (Variant)





baseType (Vector Base Type)

The baseType attribute specifies the base variant type of a vector.


The allowed values are: variant, i1, i2, i4, i8, ui1, ui2, ui4, ui8, r4, r8, lpstr, lpwstr, bstr, date, filetime, bool, cy, error, clsid, and cf.


The possible values for this attribute are defined by the ST_VectorBaseType simple type7.4.3.6).

size (Vector Size)

Specifies the number of elements in the vector.


The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Vector">

   <choice minOccurs="1" maxOccurs="unbounded">

   <element ref="variant"/>

   <element ref="i1"/>

   <element ref="i2"/>

   <element ref="i4"/>

   <element ref="i8"/>

   <element ref="ui1"/>

   <element ref="ui2"/>

   <element ref="ui4"/>

   <element ref="ui8"/>

   <element ref="r4"/>

   <element ref="r8"/>

   <element ref="lpstr"/>

   <element ref="lpwstr"/>

   <element ref="bstr"/>

   <element ref="date"/>

   <element ref="filetime"/>

   <element ref="bool"/>

   <element ref="cy"/>

   <element ref="error"/>

   <element ref="clsid"/>

   <element ref="cf"/>


   <attribute name="baseType" type="ST_VectorBaseType" use="required"/>

   <attribute name="size" type="xsd:unsignedInt" use="required"/>