RuleList Class

Rule List.When the object is serialized out as xml, its qualified name is dgm:ruleLst.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Diagrams.RuleList

Namespace:  DocumentFormat.OpenXml.Drawing.Diagrams
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Rule))> _
Public Class RuleList _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As RuleList
[ChildElementInfoAttribute(typeof(Rule))]
public class RuleList : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Rule <dgm:rule>

[ISO/IEC 29500-1 1st Edition]

21.4.2.25 ruleLst (Rule List)

This element is simply a list of rules.

This element allows for a rule to be specified which changes the value of an existing constraint.

[Example: Consider the following example of a ruleLst in a DrawingML diagram:

<ruleLst>
<rule type="primFontSz" val="2" />
</ruleLst>

In this example a single rule is being defined in the ruleLst that shrinks the primary font size down to a lower limit of 2pt font when the text no longer fits correctly in the layout node. end example]

Parent Elements

else (§21.4.2.12); forEach (§21.4.2.14); if (§21.4.2.15); layoutNode (§21.4.2.19)

Child Elements

Subclause

rule (Rule)

§21.4.2.24

[Note: The W3C XML Schema definition of this element’s content model (CT_Rules) is located in §A.5.3. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RuleList Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace