共用方式為


Rules Class

Rule Set.When the object is serialized out as xml, its qualified name is o:rules.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Vml.Office.Rules

Namespace:  DocumentFormat.OpenXml.Vml.Office
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

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

Remarks

The following table lists the possible child types:

  • Rule <o:r>

[ISO/IEC 29500-1 1st Edition]

14.2.2.27 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"/>
    </o:r>
  </o:rules>
</o:shapelayout>

end example]

Parent Elements

shapelayout (§14.2.2.29)

Child Elements

Subclause

r (Rule)

§14.2.2.22

Attributes

Description

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 (§14.1.3.2).

[Note: The W3C XML Schema definition of this element’s content model (CT_Rules) is located in §A.6.2. 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

Rules Members

DocumentFormat.OpenXml.Vml.Office Namespace