StateTransition Class
A transition from a state to another.
public sealed class StateTransitionConstructors
| Name | Description |
|---|---|
| StateTransition(StateDiagramState, StateDiagramState, DiagramText?) | Initializes a new instance of the StateTransition class. |
StateTransition(StateDiagramState, StateDiagramState, DiagramText?)
StateTransition.csInitializes a new instance of the StateTransition class.
public StateTransition(StateDiagramState from, StateDiagramState to, DiagramText? label = null)Parameters
fromStateDiagramState- The state the transition leaves.
toStateDiagramState- The state the transition enters.
labelDiagramText?- The text of the transition, such as its event, or
nullfor none.
Properties
| Name | Description |
|---|---|
| From | Gets the state the transition leaves. |
| Label | Gets or sets the text of the transition, or null for none. |
| To | Gets the state the transition enters. |
Label
StateTransition.csGets or sets the text of the transition, or null for none.
public DiagramText? Label { get; set; }