SequenceParticipant Class

A participant of a sequence diagram: a box, a person or a symbol at the top of its lifeline.

public sealed class SequenceParticipant

Constructors

NameDescription
SequenceParticipant(string, DiagramText?)Initializes a new instance of the SequenceParticipant class.

SequenceParticipant(string, DiagramText?)

SequenceParticipant.cs

Initializes a new instance of the SequenceParticipant class.

public SequenceParticipant(string id, DiagramText? label = null)

Parameters

id string
The identifier, unique in the diagram, which is shown when there is no label.
label DiagramText?
The name shown, or null to show the identifier.

Properties

NameDescription
IdGets the identifier, unique in the diagram.
KindGets or sets how the participant is drawn.
LabelGets or sets the name shown, or null to show the identifier (Mermaid alias).

Gets the identifier, unique in the diagram.

public string Id { get; }

Property value

string

Gets or sets how the participant is drawn.

public SequenceParticipantKind Kind { get; set; }

Gets or sets the name shown, or null to show the identifier (Mermaid alias).

public DiagramText? Label { get; set; }

Property value

DiagramText?

Methods

NameDescription
ToString()Returns the identifier.

Returns the identifier.

public override string ToString()

Returns

string The identifier.