StateTransition Class

A transition from a state to another.

public sealed class StateTransition

Constructors

NameDescription
StateTransition(StateDiagramState, StateDiagramState, DiagramText?)Initializes a new instance of the StateTransition class.

StateTransition(StateDiagramState, StateDiagramState, DiagramText?)

StateTransition.cs

Initializes a new instance of the StateTransition class.

public StateTransition(StateDiagramState from, StateDiagramState to, DiagramText? label = null)

Parameters

from StateDiagramState
The state the transition leaves.
to StateDiagramState
The state the transition enters.
label DiagramText?
The text of the transition, such as its event, or null for none.

Properties

NameDescription
FromGets the state the transition leaves.
LabelGets or sets the text of the transition, or null for none.
ToGets the state the transition enters.

Gets the state the transition leaves.

public StateDiagramState From { get; }

Property value

StateDiagramState

Gets or sets the text of the transition, or null for none.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Gets the state the transition enters.

public StateDiagramState To { get; }

Property value

StateDiagramState