TimelineDiagram Class

A timeline: periods in order, each with its events, grouped in sections of the same color (Mermaid timeline).

public sealed class TimelineDiagram : Diagram
Inheritance
Diagram TimelineDiagram

Constructors

NameDescription
TimelineDiagram()

TimelineDiagram()

TimelineDiagram.cs
public TimelineDiagram()

No documentation is available.

Properties

NameDescription
DirectionGets or sets the direction of the time axis.
DisableMulticolorGets or sets a value that indicates whether the periods that are in no section have the same color. By default, each one has the next color of the palette of the theme (Mermaid disableMulticolor).
PeriodsGets the periods that are in no section, drawn first.
SectionsGets the sections.

Gets or sets the direction of the time axis.

public TimelineDirection Direction { get; set; }

Property value

TimelineDirection

DisableMulticolor

TimelineDiagram.cs

Gets or sets a value that indicates whether the periods that are in no section have the same color. By default, each one has the next color of the palette of the theme (Mermaid disableMulticolor).

public bool DisableMulticolor { get; set; }

Property value

bool

Gets the periods that are in no section, drawn first.

public IList<TimelinePeriod> Periods { get; }

Property value

IList<TimelinePeriod>

Gets the sections.

public IList<TimelineSection> Sections { get; }

Methods

NameDescription
AddPeriod(DiagramText, IEnumerable<DiagramText>)Adds a period that is in no section.
AddSection(DiagramText)Adds a section.

AddPeriod(DiagramText, IEnumerable<DiagramText>)

TimelineDiagram.cs

Adds a period that is in no section.

public TimelinePeriod AddPeriod(DiagramText label, params IEnumerable<DiagramText> events)

Parameters

label DiagramText
The text of the period, such as a year.
events IEnumerable<DiagramText>
The events.

Returns

TimelinePeriod The period.

AddSection(DiagramText)

TimelineDiagram.cs

Adds a section.

public TimelineSection AddSection(DiagramText title)

Parameters

title DiagramText
The title.

Returns

TimelineSection The section.