TimelineSection Class

A section of a timeline: a title above periods of the same color.

public sealed class TimelineSection

Constructors

NameDescription
TimelineSection(DiagramText)Initializes a new instance of the TimelineSection class.

TimelineSection(DiagramText)

TimelineSection.cs

Initializes a new instance of the TimelineSection class.

public TimelineSection(DiagramText title)

Parameters

title DiagramText
The title.

Properties

NameDescription
PeriodsGets the periods, in order.
TitleGets or sets the title.

Gets the periods, in order.

public IList<TimelinePeriod> Periods { get; }

Property value

IList<TimelinePeriod>

Gets or sets the title.

public DiagramText Title { get; set; }

Property value

DiagramText

Methods

NameDescription
AddPeriod(DiagramText, IEnumerable<DiagramText>)Adds a period.

AddPeriod(DiagramText, IEnumerable<DiagramText>)

TimelineSection.cs

Adds a period.

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.