2.2.16 StringWithValueTypeAttribute

Applies to RDL 2012/01

The StringWithValueTypeAttribute type specifies a String ([XMLSCHEMA2/2] section 3.2.1) value or expression and a ValueType attribute. The ValueType attribute specifies whether the value of the StringWithValueTypeAttribute type is treated as a theme reference if the value is not an expression. The ValueType attribute is optional. If this attribute is present, its value MUST be one of the following:

Constant: Specifies that the value is to be interpreted as a constant.

ThemeReference: Specifies that the value refers to a value specified in a theme.

If a ValueType attribute is not present, the value of the StringWithValueTypeAttribute type is interpreted as "Constant".

If a ValueType attribute is not present, its value is interpreted as "Constant".

The StringWithValueTypeAttribute type can be referenced by the following elements.

Referenced by

Style.BackgroundColor

Style.Color

Style.FontFamily

The following is the XML Schema definition of the StringWithValueTypeAttribute type.

   <xsd:complexType name="StringWithValueTypeAttribute">
     <xsd:simpleContent>
       <xsd:extension base="xsd:string">
         <xsd:attribute ref="ValueType" use="optional" />
         <xsd:anyAttribute namespace="##other" processContents="lax" />
       </xsd:extension>
     </xsd:simpleContent>
   </xsd:complexType>