<constr> (Constraint)
This element is used to specify size, position of nodes, text values, and layout dependencies between nodes in a layout definition.
<constrLst> <constr type="w" for="ch" forName="node1" refType="w" refForName=""/> <constr type="h" for="ch" forName="node1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.6"/> <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> <constr type="primFontSz" for="ch" forName="node1" refForName="" op="equ" val="100"/> </constrLst>
In this example we can see constraints being defined for the width and height along with the primary font size for a layout node referenced by node1.  The width for a transition is also specified.  ]
| Parent Elements | 
|---|
| 
 | 
| Child Elements | Subclause | 
|---|---|
| 
 | 
| Attributes | Description | 
|---|---|
| 
 | Factor used in a reference constraint or a rule in order to modify a referenced value by the factor defined. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example, the width for  The possible values for this attribute are defined by the XML Schema double datatype. | 
| 
 | Specifies the axis of layout nodes to apply a constraint or rule to. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example, the  The possible values for this attribute are defined by the ST_ConstraintRelationship simple type (§5.9.7.20). | 
| 
 | Specifies the name of the layout node to apply a constraint or rule to. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the XML Schema string datatype. | 
| 
 | The operator constraint used to evaluate the condition. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the ST_BoolOperator simple type (§5.9.7.10). | 
| 
 | Specifies the type of data point to select. The possible values for this attribute are defined by the ST_ElementType simple type (§5.9.7.25). | 
| 
 | The for value of the referenced constraint. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the ST_ConstraintRelationship simple type (§5.9.7.20). | 
| 
 | The name of the layout node referenced by a reference constraint. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the XML Schema string datatype. | 
| 
 | The point type used int he referenced constraint. The possible values for this attribute are defined by the ST_ElementType simple type (§5.9.7.25). | 
| 
 | Specifies the type of a reference constraint. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the ST_ConstraintType simple type (§5.9.7.21). | 
| 
 | Specifies the constraint to apply to this layout node. <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch" refForName="node1" op="equ" fact="0.1"/> In this example,  The possible values for this attribute are defined by the ST_ConstraintType simple type (§5.9.7.21). | 
| 
 | Specifies an absolute value instead of reference another constraint. <constr type="w" for="ch" forName="transition1" val="10"/> In this example,  The possible values for this attribute are defined by the XML Schema double datatype. | 
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Constraint">
	<sequence>
	<element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
	</sequence>
	<attributeGroup ref="AG_ConstraintAttributes"/>
	<attributeGroup ref="AG_ConstraintRefAttributes"/>
	<attribute name="op" type="ST_BoolOperator" use="optional" default="none"/>
	<attribute name="val" type="xsd:double" use="optional" default="0"/>
	<attribute name="fact" type="xsd:double" use="optional" default="1"/>
</complexType>