EventModelingFrame Class

A frame of an event model: an entity at a point of the timeline, drawn as a box in its swimlane.

public sealed class EventModelingFrame

Constructors

NameDescription
EventModelingFrame(string, EventModelingEntityKind, string)Initializes a new instance of the EventModelingFrame class.

EventModelingFrame(string, EventModelingEntityKind, string)

EventModelingFrame.cs

Initializes a new instance of the EventModelingFrame class.

public EventModelingFrame(string id, EventModelingEntityKind kind, string entity)

Parameters

id string
The identifier: one to three digits, unique in the diagram.
kind EventModelingEntityKind
The kind of the entity.
entity string
The name of the entity, such as AddItem, or Cart.AddItem to put it in the swimlane of the namespace Cart.

Properties

NameDescription
DataGets or sets the inline data the box shows, or null for none. It is on one line.
DataBlockGets or sets the data block whose data the box shows, or null for none. It takes precedence over EventModelingFrame.Data.
EntityGets or sets the name of the entity. A name of two parts, Namespace.Name, puts the box in the swimlane of the namespace and shows the second part.
IdGets the identifier of the frame, unique in the diagram.
IsResetGets or sets a value that indicates whether the frame is a reset frame (Mermaid rf): no relation is inferred from the frames before it.
KindGets or sets the kind of the entity, which sets the swimlane and the colors of the box.
SourcesGets the frames this frame receives input from (Mermaid ->>). Without sources, a relation is inferred from the last frame of another swimlane before it, unless the frame is a reset frame.

Gets or sets the inline data the box shows, or null for none. It is on one line.

public EventModelingData? Data { get; set; }

Property value

EventModelingData?

Gets or sets the data block whose data the box shows, or null for none. It takes precedence over EventModelingFrame.Data.

public EventModelingDataBlock? DataBlock { get; set; }

Gets or sets the name of the entity. A name of two parts, Namespace.Name, puts the box in the swimlane of the namespace and shows the second part.

public string Entity { get; set; }

Property value

string

Gets the identifier of the frame, unique in the diagram.

public string Id { get; }

Property value

string

Gets or sets a value that indicates whether the frame is a reset frame (Mermaid rf): no relation is inferred from the frames before it.

public bool IsReset { get; set; }

Property value

bool

Gets or sets the kind of the entity, which sets the swimlane and the colors of the box.

public EventModelingEntityKind Kind { get; set; }

Gets the frames this frame receives input from (Mermaid ->>). Without sources, a relation is inferred from the last frame of another swimlane before it, unless the frame is a reset frame.

public IList<EventModelingFrame> Sources { get; }

Methods

NameDescription
ToString()Returns the identifier and the entity of the frame.

Returns the identifier and the entity of the frame.

public override string ToString()

Returns

string The text.