[Table of Contents] [docx version]

VML Reference Material - VML

rules (Rule Set)

This element specifies a list of rule entries which describe how a certain shape or sets of shapes should behave during editing.

[Example: The following rule defines a connection between two shapes. The shape with id _s1036 connects shape _s1033 to _s1032:

<o:shapelayout v:ext="edit">

<o:rules v:ext="edit">

<o:r id="V:Rule1" type="connector" idref="#_s1036">

<o:proxy start="" idref="#_s1033" connectloc="0"/>

<o:proxy end="" idref="#_s1032" connectloc="2"/>




end example]

Parent Elements



Child Elements


r (Rule)





ext (VML Extension Handling Behavior)


Namespace: urn:schemas-microsoft-com:vml

Specifies an optional value that indicates how applications that implement VML should interpret extensions not defined as part of the original specification of core VML.


[Rationale: This part of the original VML specification is included to assist applications that leverage existing VML support in implementing the Office Open XML Format. end rationale]


The possible values for this attribute are defined by the ST_Ext simple type (§

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Rules">


   <element name="r" type="CT_R" minOccurs="0" maxOccurs="unbounded"/>


   <attributeGroup ref="v:AG_Ext"/>