2.4.8.2.3 CT_ShapeData
Referenced by: CT_ShapeDataItems
The CT_ShapeData complex type specifies a shape data item.
Attributes:
Name : An xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the label of the shape data item.
FormattedValue : An xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the value formatted for display. It MUST NOT be an empty string.
Value : An attribute that specifies the value of the shape data item. The type of this attribute is specified by Type.
Format : An xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the vFormatString used to format the value for display.
Type : An xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the data type of the shape data item. It MUST be a value from the following table:
Value |
Meaning |
---|---|
0 |
|
1 |
A fixed list of values represented as a string. The type of Value MUST be string. |
2 |
|
3 |
A Boolean
value. The type of Value MUST be string and Value MUST be |
4 |
A variable list of values represented as a string. The type of Value MUST be string. |
5 |
An OLE automation date value as specified in [MS-OAUT] section 2.2.25. The type of Value MUST be double. |
6 |
|
7 |
LangID : An xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vLanguageID used to format the value.
UnitLabel : An xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vUnitLabel used to format the value.
CalendarID : An optional xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vCalendar used to format a date value. The default value is 0. It MUST be ignored if Type is not equal to 5.
CurrencyID : An optional xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vCurrencyID used to format a currency value. The default value is 0. It MUST be ignored if Type is not equal to 7.
ServerAction : An optional xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vServerAction for the formatted value. The default value is 0.
Unit : An xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vNumAny that Value is converted from before formatting it for display.
DisplayUnit : An optional xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the vNumAny that Value is converted to before formatting it for display. The default is the value of Unit.
BindingID : An optional xsd:integer ([XMLSCHEMA2] section 3.3.13) attribute that specifies the CT_Binding identifier for this shape data item. It MUST be one of the values specified by the BindingID attribute of the CT_Binding elements in the DataBinding XML Part. If this attribute does not exist then this shape data item is not bound to data.
HyperlinkID : An optional xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the CT_Hyperlink identifier for this shape data item. It MUST be the value of the Name attribute of a CT_Hyperlink child element of the corresponding CT_ShapeInfo element in this XML part. If this attribute does not exist then this shape data item is not associated with a hyperlink.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
-
<xsd:complexType name="CT_ShapeData"> <xsd:attribute name="Name" type="xsd:string" use="required"/> <xsd:attribute name="FormattedValue" type="xsd:string" use="required"/> <xsd:attribute name="Value" type="xsd:string" use="required"/> <xsd:attribute name="Format" type="xsd:string" use="required"/> <xsd:attribute name="Type" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:enumeration value="0"/> <xsd:enumeration value="1"/> <xsd:enumeration value="2"/> <xsd:enumeration value="3"/> <xsd:enumeration value="4"/> <xsd:enumeration value="5"/> <xsd:enumeration value="6"/> <xsd:enumeration value="7"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="LangID" type="xsd:integer" use="required"/> <xsd:attribute name="UnitLabel" type="xsd:integer" use="required"/> <xsd:attribute name="CalendarID" type="xsd:integer" use="optional"/> <xsd:attribute name="CurrencyID" type="xsd:integer" use="optional"/> <xsd:attribute name="ServerAction" type="xsd:integer" use="optional"/> <xsd:attribute name="Unit" type="xsd:integer" use="required"/> <xsd:attribute name="DisplayUnit" type="xsd:integer" use="optional"/> <xsd:attribute name="BindingID" type="xsd:integer" use="optional"/> <xsd:attribute name="HyperlinkID" type="xsd:string" use="optional"/> </xsd:complexType>