Compartir a través de


NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule Class

Definition

Rule to call Collapse() on a new NodeShape if its IsExpanded flag is false when it is parented (directly or indirectly) by the diagram. This rule calls Collapse() for the node shape that is added to the diagram and all other node shapes that are descendents of that node shape, because then got parented by the diagram too.

public: ref class NodeShape::ExpandCollapseNodeShapeWhenAddedToDiagramRule : Microsoft::VisualStudio::Modeling::AddRule
[Microsoft.VisualStudio.Modeling.RuleOn(typeof(Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeContainsNestedChildShapes))]
[Microsoft.VisualStudio.Modeling.RuleOn(typeof(Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeHasRelativeChildShapes))]
public class NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule : Microsoft.VisualStudio.Modeling.AddRule
[<Microsoft.VisualStudio.Modeling.RuleOn(typeof(Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeContainsNestedChildShapes))>]
[<Microsoft.VisualStudio.Modeling.RuleOn(typeof(Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeHasRelativeChildShapes))>]
type NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule = class
    inherit AddRule
Public Class NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule
Inherits AddRule
Inheritance
NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule
Attributes

Constructors

NodeShape.ExpandCollapseNodeShapeWhenAddedToDiagramRule()

Properties

FireBefore

returns true if this rule should be fired inline before the change happens

(Inherited from Rule)
FireImmediately

returns true if this rule should be fired inline

(Inherited from Rule)
FireOnLocalCommit

returns true if this rule should be fired at local commit time

(Inherited from Rule)
FireOnTopLevelCommit

returns true if this rule should be fired at top level commit time

(Inherited from Rule)
FireTime

Get or set the time to fire this rule

(Inherited from Rule)
IsEnabled

Gets or Sets whether the Rule is enabled.

(Inherited from Rule)
Priority

Get the priority of this rule

(Inherited from Rule)

Methods

CompareTo(Object)

Compare this rule object with another object

(Inherited from Rule)
CompareTo(Rule)

Query whether this rule is less, greater, or equal to another rule instance.

(Inherited from Rule)
ElementAdded(ElementAddedEventArgs)
Equals(Object)

Equals operator

(Inherited from Rule)
Equals(Rule)

Equals operator

(Inherited from Rule)
GetHashCode()

Get the hash code for this rule

(Inherited from Rule)

Applies to