TimelinePeriod Class

A period of a timeline, such as a year, with its events.

public sealed class TimelinePeriod

Constructors

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

TimelinePeriod(DiagramText)

TimelinePeriod.cs

Initializes a new instance of the TimelinePeriod class.

public TimelinePeriod(DiagramText label)

Parameters

label DiagramText
The text of the period.

Properties

NameDescription
EventsGets the events, in order.
LabelGets or sets the text of the period.

Gets the events, in order.

public IList<DiagramText> Events { get; }

Property value

IList<DiagramText>

Gets or sets the text of the period.

public DiagramText Label { get; set; }

Property value

DiagramText

Methods

NameDescription
ToString()Returns the text of the period.

Returns the text of the period.

public override string ToString()

Returns

string The text.