Поделиться через


Constraints Class

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

Inheritance Hierarchy

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

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

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(Constraint))> _
Public Class Constraints _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As Constraints
[ChildElementInfoAttribute(typeof(Constraint))]
public class Constraints : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Constraint <dgm:constr>

[ISO/IEC 29500-1 редакция 1]

21.4.2.9 constrLst (Constraint List)

This element is simply a list of constraints.

[Example: Consider the following example of a constraint list which contains some example constraints which are being defined and applied to layout nodes in the 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. 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

constr (Constraint)

§21.4.2.8

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

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

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

Constraints Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace