Categories of change that can be reported on a graph or state machine element.
ChangeKind is a bit-flag enum, so a single value can describe multiple categories of change
at once. Combine values with | and test them with & or Enum.HasFlag.
A value of ChangeKind.None means no change categories are set.
Combine flags with the bitwise-or operator, and test them with bitwise-and or <see cref="Enum.HasFlag" />:
ChangeKind kinds = ChangeKind.Added | ChangeKind.Data;
if ((kinds & ChangeKind.Added) != 0) { /* newly added */ } if (kinds.HasFlag(ChangeKind.Data)) { /* data changed */ }
| Property | Description |
|---|---|
| None | No change categories. |
| Layout | The position or dimension of the element changed. |
| Style | The visual style (color, etc.) of the element changed. |
| Data | Model data (for example, an inspectable field) changed. |
| Topology | Graph or state machine topology changed; typically, a wire or transition was connected or disconnected. |
| Grouping | Grouping of variables in the blackboard changed. |
| Added | The element was added to the graph or state machine. |
| Removed | The element was removed from the graph or state machine. |
| PortChanged | A port on the node changed; inspect ChangedNode.ChangedPorts for details. |
| RecreateView | The view for the element must be torn down and recreated (for example, a variable node flipped between Get and Set). |