2.18 Paragraph

Applies to RDL 2008/01, RDL 2010/01, and RDL 2016/01

The Paragraph element specifies the layout properties of a paragraph of text within a Textbox and contains a collection of TextRun elements. This element MUST be specified at least once within a Paragraphs collection.

The following are the parent and child elements of the Paragraph element.

Parent elements

Paragraphs

Child elements

Paragraph.HangingIndent

Paragraph.LeftIndent

Paragraph.ListLevel

Paragraph.ListStyle

Paragraph.RightIndent

Paragraph.SpaceAfter

Paragraph.SpaceBefore

Paragraph.Style

Paragraph.TextRuns

The following is the XML Schema definition of the Paragraph element in RDL 2008/01.

 <xsd:complexType name="ParagraphType">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="Style" type="StyleType" minOccurs="0" />
     <xsd:element name="TextRuns" type="TextRunsType" minOccurs="1" />
     <xsd:element name="LeftIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="RightIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="HangingIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="ListStyle" minOccurs="0">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="None" />
           <xsd:enumeration value="Bulleted" />
           <xsd:enumeration value="Numbered" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:element name="ListLevel" type="xsd:unsignedInt" minOccurs="0" />
     <xsd:element name="SpaceBefore" type="xsd:string" minOccurs="0" />
     <xsd:element name="SpaceAfter" type="xsd:string" minOccurs="0" />
     <xsd:any namespace="##other" processContents="skip" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="skip" />
   <xsd:complexType>

The following is the XML Schema definition of the Paragraph element in RDL 2010/01 and RDL 2016/01.

 <xsd:complexType name="ParagraphType">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="Style" type="StyleType" minOccurs="0" />
     <xsd:element name="TextRuns" type="TextRunsType" minOccurs="1" />
     <xsd:element name="LeftIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="RightIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="HangingIndent" type="xsd:string" minOccurs="0" />
     <xsd:element name="ListStyle" minOccurs="0">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="None" />
           <xsd:enumeration value="Bulleted" />
           <xsd:enumeration value="Numbered" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:element name="ListLevel" type="xsd:unsignedInt" minOccurs="0" />
     <xsd:element name="SpaceBefore" type="xsd:string" minOccurs="0" />
     <xsd:element name="SpaceAfter" type="xsd:string" minOccurs="0" />
     <xsd:any namespace="##other" processContents="lax" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="lax" />
   <xsd:complexType>