2.16.20 Textbox.DataElementStyle

The Textbox.DataElementStyle element specifies whether all TextRun.Value elements or all Textbox.Value elements, when rendered out to an XML data renderer, are rendered as attributes or as elements. This element is optional. If the Textbox.DataElementStyle element is present, its value MUST be a String ([XMLSCHEMA2/2] section 3.2.1). The String MUST be one of the following:

Auto: Specifies that this value MUST be the same as Report.DataElementStyle.

Attribute: Specifies that TextRun.Value elements or the Textbox.Value element within this text box are all rendered as attributes. This value was formerly "AttributeNormal" in RDL 2003/10 and RDL 2005/01.

Element: Specifies that TextRun.Value elements or the TextBox.Value element within this text box are all rendered as elements. This value was formerly "ElementNormal" in RDL 2003/10 and RDL 2005/01.

If the Textbox.DataElementStyle element is not present, its value is interpreted as "Auto".

Following is the parent element of the Textbox.DataElementStyle element.

Parent elements

Textbox

The following is the XML Schema definition of the Textbox.DataElementStyle element in RDL 2003/10 and RDL 2005/01.

 <xsd:element name="DataElementStyle" minOccurs="0">
   <xsd:simpleType>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="Auto" />
       <xsd:enumeration value="AttributeNormal" />
       <xsd:enumeration value="ElementNormal" />
     </xsd:restriction>
   </xsd:simpleType>
 </xsd:element>

The following is the XML Schema definition of the Textbox.DataElementStyle element in RDL 2008/01, RDL 2010/01, and RDL 2016/01.

 <xsd:element name="DataElementStyle" minOccurs="0" ">
   <xsd:simpleType>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="Auto" />
       <xsd:enumeration value="Attribute" />
       <xsd:enumeration value="Element" />
     </xsd:restriction>
   </xsd:simpleType>
 </xsd:element>