[Table of Contents] [docx version]

Shared MLs Reference Material - Math

variant (Variant)

This element can contain exactly 1 child element of any variant type. This element is only valid as a child element of a vector or array variant type.

[Example: A vector of variant types:

<vt:vector baseType="variant">
<vt:variant>
<vt:i4>12</vt:i4>
</vt:variant>
<vt:variant>
<vt:lpstr>WorkSheets</vt:lpstr>
</vt:variant>
</vt:vector>

end example]

Parent Elements

array7.4.2.1); variant7.4.2.33); vector7.4.2.34)

 

Child Elements

Subclause

array (Array)

§7.4.2.1

blob (Binary Blob)

§7.4.2.2

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

decimal (Decimal)

§7.4.2.9

empty (Empty)

§7.4.2.10

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

int (Integer)

§7.4.2.17

lpstr (LPSTR)

§7.4.2.18

lpwstr (LPWSTR)

§7.4.2.19

null (Null)

§7.4.2.20

oblob (Binary Blob Object)

§7.4.2.21

ostorage (Binary Storage Object)

§7.4.2.22

ostream (Binary Stream Object)

§7.4.2.23

r4 (4-Byte Real Number)

§7.4.2.24

r8 (8-Byte Real Number)

§7.4.2.25

storage (Binary Storage)

§7.4.2.26

stream (Binary Stream)

§7.4.2.27

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

uint (Unsigned Integer)

§7.4.2.32

variant (Variant)

§7.4.2.33

vector (Vector)

§7.4.2.34

vstream (Binary Versioned Stream)

§7.4.2.35

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

<complexType name="CT_Variant">

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

   <element ref="variant"/>

   <element ref="vector"/>

   <element ref="array"/>

   <element ref="blob"/>

   <element ref="oblob"/>

   <element ref="empty"/>

   <element ref="null"/>

   <element ref="i1"/>

   <element ref="i2"/>

   <element ref="i4"/>

   <element ref="i8"/>

   <element ref="int"/>

   <element ref="ui1"/>

   <element ref="ui2"/>

   <element ref="ui4"/>

   <element ref="ui8"/>

   <element ref="uint"/>

   <element ref="r4"/>

   <element ref="r8"/>

   <element ref="decimal"/>

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

   <element ref="ostream"/>

   <element ref="storage"/>

   <element ref="ostorage"/>

   <element ref="vstream"/>

   <element ref="clsid"/>

   <element ref="cf"/>

   </choice>

</complexType>