[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">
<vt:lpstr>One</vt:lpstr>
<vt:lpstr>Two</vt:lpstr>
<vt:lpstr>Three</vt:lpstr>
</vt:vector>

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

Subclause

bool (Boolean)

§7.4.2.3

bstr (Basic String)

§7.4.2.4

cf (Clipboard Data)

§7.4.2.5

clsid (Class ID)

§7.4.2.6

cy (Currency)

§7.4.2.7

date (Date and Time)

§7.4.2.8

error (Error Status Code)

§7.4.2.11

filetime (File Time)

§7.4.2.12

i1 (1-Byte Signed Integer)

§7.4.2.13

i2 (2-Byte Signed Integer)

§7.4.2.14

i4 (4-Byte Signed Integer)

§7.4.2.15

i8 (8-Byte Signed Integer)

§7.4.2.16

lpstr (LPSTR)

§7.4.2.18

lpwstr (LPWSTR)

§7.4.2.19

r4 (4-Byte Real Number)

§7.4.2.24

r8 (8-Byte Real Number)

§7.4.2.25

ui1 (1-Byte Unsigned Integer)

§7.4.2.28

ui2 (2-Byte Unsigned Integer)

§7.4.2.29

ui4 (4-Byte Unsigned Integer)

§7.4.2.30

ui8 (8-Byte Unsigned Integer)

§7.4.2.31

variant (Variant)

§7.4.2.33

 

Attributes

Description

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"/>

   </choice>

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

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

</complexType>