KanbanColumn Class

A column of a kanban board: a stage of the workflow, with its cards.

public sealed class KanbanColumn

Constructors

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

KanbanColumn(string, DiagramText?)

KanbanColumn.cs

Initializes a new instance of the KanbanColumn class.

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

Parameters

id string
The identifier, which is the title when there is no label.
label DiagramText?
The title, or null to show the identifier.

Properties

NameDescription
CardsGets the cards, from top to bottom.
CssClassesGets the CSS classes, written to the SVG.
IdGets the identifier.
LabelGets or sets the title, or null to show the identifier.

Gets the cards, from top to bottom.

public IList<KanbanCard> Cards { get; }

Property value

IList<KanbanCard>

CssClasses

KanbanColumn.cs

Gets the CSS classes, written to the SVG.

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets the identifier.

public string Id { get; }

Property value

string

Gets or sets the title, or null to show the identifier.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Methods

NameDescription
AddCard(string, DiagramText?)Adds a card.
ToString()Returns the identifier.

AddCard(string, DiagramText?)

KanbanColumn.cs

Adds a card.

public KanbanCard AddCard(string id, DiagramText? label = null)

Parameters

id string
The identifier, which is the text when there is no label.
label DiagramText?
The text, or null to show the identifier.

Returns

KanbanCard The card.

ToString()

KanbanColumn.cs

Returns the identifier.

public override string ToString()

Returns

string The identifier.